Jao
November 6th, 2007, 05:22 PM
Hello everyone,
Recently started educating myself with AS3. And, of course, came to a dead end: I've found that addChild adds a sprite to the Stage when it's called from Document Class. But what if i have my custom class, that i'm Importing to a stage with "import com.blabla.bla.x"; Then of course, I fire up my class and even passing a var to it for processing :
var l = (root.loaderInfo.parameters.lang == undefined) ? 'ee' : root.loaderInfo.parameters.lang;
var mm:x= new x(l);
all works ok, all traces out. But, can't addChild from my .as file to the stage. Anyone knows where to dig?
Thanks,
All the best.
Recently started educating myself with AS3. And, of course, came to a dead end: I've found that addChild adds a sprite to the Stage when it's called from Document Class. But what if i have my custom class, that i'm Importing to a stage with "import com.blabla.bla.x"; Then of course, I fire up my class and even passing a var to it for processing :
var l = (root.loaderInfo.parameters.lang == undefined) ? 'ee' : root.loaderInfo.parameters.lang;
var mm:x= new x(l);
all works ok, all traces out. But, can't addChild from my .as file to the stage. Anyone knows where to dig?
Thanks,
All the best.