Here’s the simplified code of what I am trying to achieve:
package {
public class Main extends MovieClip {
public var teams:Array = new Array("Brazil","Germany", "Spain");
}
//later on code...
var simulate:Simulate= new Simulate();
addChild(simulate);
}
package {
public class Simulate extends MovieClip {
public function Simulate():void {
trace("inside class"); //<-- working
trace("team from Main.as" + MovieClip(root).teams[0]); //<-- not working
}
}
}
Any ideas?
Thanks a lot in advance!