Hey, this is something I've always wondered about, but it hasn't really been an issue since I moved to AS3.
Let's say we have a movieclip on the Stage that's animated from frames 1 to 20, moving from left side of the stage to the right.
Let's also say that in the class definition for that movieclip, we have an event listener applied for EVENT.ENTER_FRAME, which sets the x and y values of the movieclip to your mouse.
Now, my question is, what behavior does the movieclip exhibit? Which of these takes precedence? What if, instead of associating absolute values in the EVENT.ENTER_FRAME handler, we used y+=10?
Would Flash move the movieclip to the right AND move it up, or only one of them?
Another question - recently I've been coding a video annotation application on a single frame in a .fla document with accompanying .as class definitions. However, when I attempt to add a preceding (empty) frame in the main .fla file, horrible errors come up. The trace output says that the stop(); function is not recognised in the frames of the main timeline (has this changed since as2?) and that we have:
1) A call to an undefined function 'addFrameScript' in the first line of the main .as class file.
2) 1120: Access of undefined property currentFrame. in setPropDict() in all the class instances I have placed on the second frame.
This also begs the question - when are the constructors for classes within a timeline called? Is it when the containing clip is instantiated, or when they first appear?
Hopefully there are some AS3 experts out there who can answer these questions!