Aug 18

So I am trying to figure out the following piece of code:

Actionscript:
  1. <pre>in Application.as
  2. import Log;
  3. class Application
  4. {
  5. private var _log:Log; // force mtasc to compile Log.as
  6.  
  7. function Application(createdBy)
  8. {
  9. // Re-assigment of _root to Application instance
  10. createdBy.__proto__ = this.__proto__;
  11. createdBy.__constructor__ = Application;
  12. this = createdBy;
  13.  
  14. setup();
  15. }
  16. public function setup()
  17. {
  18. TRACE("hello world");
  19. }
  20. public static function main(createdBy:MovieClip)
  21. {
  22. var app = new Application(createdBy);
  23. }
  24. }; // end of class</pre>

found here:

http://www.osflash.org/pipermail/osflash_osflash.org/2005-August/002165.html

So far I have been recommended to read the following article:

http://www.quantumwave.com/flash/inheritance.html

The article well covers the subject of inheritance in Flash 5 and MX. My only concern is that as the article points out using inheritance in this way it will be only an overload to the application.
..to be continued

Feb 28

So I am here struggling for hours (at least it looked like it was hours!) trying to figure out why my combo box wasnt working.

The Basic scenario is that I created a CB in a child movie for later being loaded to a parent movie.

->Parent
-->Child < -with Combo Box

Well, when you load the Child movie into the Parent movie you expect it to work whitout a problem right?... WRONG! some kind of bug or problem or whatever for some reason the Combo Box wont work, why? who knows.

Doing a light search I found out that in order for the Combo box to work on the Parent Movie you need to have a copy of the Combo Box component in the Parent movie even though you are not going to use it directly within the parent.

That's a lie! you might think (or at least that is what I thought) but in reallity it works.. now this is my set up:

-> Parent < -copy of Combo Box Component not being used
--> Child < with Combo Box used

Weird.. but it works, just in case someone is looking for the answer :)

Sep 9

What everyone has been waiting for!

Macromedia MX2004 It is ready for download. Not only flash but Dreamweaver, Coldfusion, Fireworks, Flash Professional 2004 and Flash 2004.

For more details click here!!!!!!!!!!!!!!!!!!!

Sep 2

This is another section you can read to understand AS2 A little better. This is a PDF file, so make sure you have the plug in to read it:

JavaScript 2.0: Evolving a Language for Evolving Systems

Read on friend!

Sep 2
FlashMX AS2
icon1 helmut | icon2 FlashMX | icon4 09 2nd, 2003| icon3No Comments »

I saw this link posted in FlashCoders.

For those of you who are interested in catching up with AS2 check out ECMAScript 4 Netscape Proposal.

If you read through the document, to my understanding you will get a very good grip of what AS2 is all about.

So, what are you waiting for? check out the link and start reading!!

Aug 20
Round to decimal point
icon1 helmut | icon2 FlashMX | icon4 08 20th, 2003| icon3No Comments »


value= int((number)*100)/100;

//Usage

value= int((31.987654)*100)/100;

trace(value)

Jun 23
Drag and Drop
icon1 helmut | icon2 FlashMX | icon4 06 23rd, 2003| icon3No Comments »

//Drag Function
MovieClip.prototype.Press = function()
{
this.startDrag();
};

//Release Function
MovieClip.prototype.Release = function()
{
this.stopDrag();
if(eval(this._droptarget) == landingArea)
{
this.enabled = false
counter = counter + 1;
trace(counter);
if (counter == 4)
{
trace("You Got Them All!")
};
};
};

MovieClip.prototype.Actions = function()
{
this.onPress = Press;
this.onRelease = Release;
};

mc_One.Actions();
mc_Two.Actions();
mc_Three.Actions();
mc_Four.Actions();

/*
Usage:
Create 4 MC give instance names or
mc_One, mc_Two, mc_Three, mc_Four
Crate one more and give instance name
of landingArea.
Place script on frame 1 and drag and drop

mc_One - Four
To landingArea. Once all of them have landed

the counter will Start
and the dragging functions will be disabled so the user
Cant move them. Hope this helps */

You can find a sample here

Drag and Drop Samplehttp://www.humanletter.com/tutorials/draganddrop.html

Jun 18

this.createEmptyMovieClip ("fader",5);

fader.onEnterFrame = function()
{
if (myobject._alpha >= 0)
{
trace("fading:" + myobject._alpha);
myobject._alpha -= 1;
}
else
{
trace("end of faiding")
delete (this.onEnterFrame);
}
}

Jun 6
Action Script Test
icon1 helmut | icon2 FlashMX | icon4 06 6th, 2003| icon3No Comments »


on (release) {
if ((firstname != "") && (lastname != "")
&& (email != "")){;
gotoAndPlay("valid");
loadVariables ("URL", "_root.form",
"POST");
trace("valid")
}else{
gotoAndPlay("invalid");
trace("invalid");
}
}

May 7


value= int((number)*100)/100;

//Usage

value= int((31.987654)*100)/100;

trace(value)