Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Flash CSn/AS3 中,您将 Main 类与 Flash 文件相关联,当加载到 Flash 播放器中时“自动创建程序主类的实例”。
我想知道如何将参数传递给主类,因为您不是自己编写的(您将其名称放在 IDE 的 Document 文本字段中)。
(我已经发布了几次了:()
为了在舞台和文档类之间进行交流,您通常会与制作它的人串通一气。
但是 flash vars 使您能够将它们作为您构建舞台的东西,并在您的文档类中利用它们。
http://kb2.adobe.com/cps/164/tn_16417.html