R – Can any Flash compiler put scripts on multiple frames

actionscriptcompiler-constructionflashhaxemtasc

Can any Flash compiler put specific scripts on specific frames of the Flash movie SWF?

Like you can do from within the Flash IDE, just place a script on the required frame using the Timeline panel, and the script gets compiled to that frame of the Flash movie SWF.

Eg. script on frame 1 :

trace("Reached frame 1");

Eg. script on frame 2 :

trace("Reached frame 2");

SWF Compilers: (Hopefuls)

Best Answer

It's possible with the MXMLC, though it not very well documented.

A Google Search for Flex Frame Metadata will show you the code. A little trial and error and you should be able to get something working. (This is how the flex preloader works)

Related Topic