如何以编程方式将flash .fla文件与文档类相关联?

时间:2010-05-31 05:51:50

标签: flash

我听说过jsfl(Flash IDE API)所以我想这是可能的,但我找不到任何具体的例子?

1 个答案:

答案 0 :(得分:1)

var myDocument = fl.getDocumentDOM();  
// set the property  
myDocument.docClass = "com.mycompany.ManagerClass";  
// get the property  
fl.outputPanel.trace("document.docClass has been set to " + myDocument.docClass);

参考:http://help.adobe.com/ru_RU/Flash/10.0_ExtendingFlash/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7fd0.html