Hi,
Don't think you can do this - I think all classes (code) are
exported to the same frame, but your movieclips can be distributed along
the timeline so you gain something there. You may want to look at your
ultimate aim as you could do this a different way:
If you are trying to create a library of classes linked to
movieclips, you may want to put these in a separate SWF and create a
Runtime Shared Library that you preload into your main movie. You can
use an XML file to exclude the classes from being compiled into your
main SWF file.
Colin Moock has a good example of this if you have his EAS2 book.
He has an example of doing this, but would recommend reading the chapter
too if you can.
http://moock.org/eas2/examples/ Chapter 14, Distributing Class
libraries.
Search for Runtime Shared Library. The following search - different
params - finds some useful articles:
http://www.google.co.uk/search?hl=en&q=actionscript+load+classes+runtime+xml+exclude&btnG=Google+Search&meta=
<http://www.google.co.uk/search?hl=en&q=actionscript+load+classes+runtime+xml+exclude&btnG=Google+Search&meta=>
The bottom of this article has a good snippet about excluding classes:
http://osflash.org/using_a_swf_as_a_dll
Henry Cooke wrote:
Hey all,
I'm trying to work out if there's a way I can export AS2 classes to
more than one frame: I'm experimenting with fine-grained loading and
preloaders written in AS2.
So for instance, does anyone know if it's possible to write a
preloader in AS2, then export *only* that class to frame 1 of a movie,
then some more classes to frame 2, a few more to frame three and so
on?
Cheers,
Henry
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01736 759321
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders