Search code examples
actionscript-3flashdynamicframestimeline

how to add frames to timeline dynamically?


hate to ask but I actually need to dynamically add 240 frames to a pure AS3 project and then a stop frame on the last frame.

Yes we're back in 2009.

Why?

Because the dynamic, class driven PureAS3 application I've build (swf) is being delivered to a different media owner who's inhouse system (I kid you not) checks all Flash for 10 seconds of frames(hence 240) AND checks for a 'stop();'.

Any help greatly received - I'm assuming this is possible but drawing a blank online - mainly lots of people (rightly so) advising again using the timeline.

Rich


Solution

  • Create a new SWF as a wrapper, with those 240 frames on its main timeline, the 241st frame should contain a stop() call and an instance of your project's Main class. This SWF should be validated with whatever engine they have, but retain all the functionality of your pure AS-driven project.