So it’s no big secret any more that in ActionScript 3, the MovieClip class has a hidden method that enables developers to add frame scripts at runtime. However, with great power comes great responsibility. It would help if this were documented in the Flash docs but it isn’t. If you don’t want your SWF files to crash when using this method you MUST ensure that the playhead is stopped before calling this method. I discovered this by experimenting with when, and what I could do with this method, and yes you can remove any frame scripts added at design-time or run-time (at least with the current version of Flash player). Actually, the playhead does not have to be stopped if you are setting a null frame script.
Monday, July 28, 2008
Subscribe to:
Post Comments (Atom)
1 comments:
I didn't realize its undocumented... it's very usefull
Post a Comment