Recently, I happen to know MovieClip.addFrameScript() which is very useful, otherwise timeline script should be coded in fla. Do you know any other undocumented Actionscript3 API?
A:
Here is one:
It allows you to specify a function that is called when the playhead of the Movieclip timeline enters the specified frame number.
Their are four parameters to the method.
MovieClip.addFrameScript(frame:uint, notify:Function, ?:bool, ?:bool)
Passing false as the third parameter and anything as the fourth parameter, clears the function, so that it is no longer called when the playhead enters a previously defined frame number/function combo.
Todd Moses
2010-03-16 18:19:47
I didn't realize it can have 3rd, 4th parameter. Thanks.
grayger
2010-03-17 00:27:33