开发者

Pass parameters to Flash Main (Document) class

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜