summitSW
03-19-2007, 07:00 AM
Hi,
I want to set the AS2.0 Class Name in the Component Definition for a MC - the equivalent of right clicking on the MC in the library and selecting Component Definition then entering the AS 2.0 Class.
I can set Linkage ID fine with:
var cur_doc = fl.getDocumentDOM();
var comp_lib = cur_doc.library;
comp_lib.addNewItem( "movie clip" , "component" );
comp_lib.items[0].linkageExportForAS = true;
comp_lib.items[0].linkageExportInFirstFrame = true;
comp_lib.items[0].linkageIdentifier = "Class";
comp_lib.items[0].linkageClassName = "com.asb.class";
I can't find anything on this in any books I have or sites I have searched - I hope this doesn't mean JSFL doesn't extend to this!!
Hopefully it just means that I haven't looked hard enough.
Please can someone help.
Thanks
Paul
I want to set the AS2.0 Class Name in the Component Definition for a MC - the equivalent of right clicking on the MC in the library and selecting Component Definition then entering the AS 2.0 Class.
I can set Linkage ID fine with:
var cur_doc = fl.getDocumentDOM();
var comp_lib = cur_doc.library;
comp_lib.addNewItem( "movie clip" , "component" );
comp_lib.items[0].linkageExportForAS = true;
comp_lib.items[0].linkageExportInFirstFrame = true;
comp_lib.items[0].linkageIdentifier = "Class";
comp_lib.items[0].linkageClassName = "com.asb.class";
I can't find anything on this in any books I have or sites I have searched - I hope this doesn't mean JSFL doesn't extend to this!!
Hopefully it just means that I haven't looked hard enough.
Please can someone help.
Thanks
Paul