In Flash CSn/AS3 you associate a Main class with a flash file which when loaded in the flash player "开发者_开发百科automatically creates an instance of the program's main class."
I'd like to know how to pass arguments to the main class, since you don't write it yourself (you put its name in the Document textfield in the IDE).
(I've posted this a few times now :( )
to communicate between stage and document class, your usually in cahoots with the person making it.
But flash vars give you the ability to make them as your building the stage stuff, and tap into them in you document class.
http://kb2.adobe.com/cps/164/tn_16417.html
精彩评论