Enumerate exported classes/symbols
hi all,
when load swf dynamically using loader, there way can retrieve symbols exported as3 classes?
i know can instantiate symbols when know classname using
loaderinfo.applicationdomain.getdefinition(fullyqualifiedname) class
but can't find like
applicationdomain.getdefinitions() result array of qualified classnames, like
["com.company.app.symbol1", com.company.app.symbol2",..]
so can instantiate symbol1 , add stage
var cls:class = loaderinfo.applicationdomain.getdefinition("com.company.app.symbol1") class
var obj:*;
try {
obj=new cls;
} catch (error:error) {
trace('cannot instantiate class');
}
stage.addchild(obj);
if impossible, please let me know too. in case have fill database symbols per swf , load too.
but it's lot more work creating , maintaining duplicate data.
i know there tools out there can show that's contained in swf, don't know if they're looking @ binary data.
tia
ronald
More discussions in ActionScript 3
adobe
Comments
Post a Comment