The first thing to understand is that AS2 uses the same bytecode as
AS1. i.e. AS2 if just AS1 with pretty makeup and a new hairdo.
I can't say better !
Actually all the tricks available for Flash5 are still usefull for
flash7.
The one you noticed is a trick to link a MovieClip Class with a
MovieClip graphic datatype.
This is a major problem for lots of developpers in actionscript.
Anyhow, use this code to link a custom class to the _root variable.
That way, when the timeline will be loaded, you'll get an onLoad
callback in your custom class.
Nice ain't it ?
You could look at this technique in one of Aral's article.
"Natural entry point" is the name gave to it :
http://aralbalkan.com/429
Cheers.
-----------
erixtekila
http://blog.v-i-a.net/
_______________________________________________
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