In an earlier post we showed you how to seperate design and code by keeping code off the timeline at all times. The method was to have designers add framelabels to the movieclips’ timeline and have the developers react to the flash playhead reaching this framelable by means of an Event. This created a clean seperation between the job of coders and the job of designers.
We used the TimelineListener class as an example in that earlier post. This post will show you how to take an alternative approach, without event listeners, but by means of injecting code in a frame at runtime by means of our FrameScriptManager and the MovieClip.addFramescript method.
Continue reading ‘FramescriptManager: insert code on your timeline at runtime’