Hi,
you can put classes in an swf and use the swf as a dll.
It's a hassle but its doable.

You load the swf in a specific frame, the swf only contains classes and they
become available from that frame onwards.
Again, im not sure if you should do this if the only reason is that you'd
rather write the preloader in as2 instead of as1.
It's a great opportunity to hack timelime as1 you know and nowadays those
chances are slim:))

greetz
JC

On Tue, Feb 12, 2008 at 4:21 PM, Glen Pike <[EMAIL PROTECTED]>
wrote:

> 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
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to