PDA

View Full Version : Component Definition - AS2.0 Class Name


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

summitSW
03-20-2007, 06:53 AM
Thanks to those good people over at flashmove.com I have the answer - no it is not possible - yes it does seem to have been missed (for some reason) by the JSFL architecture.

So, just in case any one else encounters a similar problem, this will have to remain a manual task.

regards

Paul