Best practices:
A lot of people use main.swf and main.as. FLASC/MTASC has a feature to
support this very functionality.
Never put classes in the same folder as your movie. Always put them in
a namespace folder chain.
For instance:
class com.clientname.projectname.Main
HTH,
Steven
Johan Nyberg wrote:
Hi, just wanted to know if there is a best practice when creating a
class for the mother movie (i.e. the flash-movie itself). Is
this the way to go?
var mother:MyFabFlashApp = new MyFabFlashApp();
..or is there a better way? Seems kind of a stupid question, but I
wanted to put it anyway in case I've missed something. ;-) I'veput my
main code on the first frame of the _root timeline for too long, and
want to move it into a class.
Regards,
/Johan Nyberg
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com