var Root:MovieClip
var container=MovieClip;
function menuPress() {
trace("trace");
}
function doIT(parameters,WIDTH,HEIGHT) {
container=MovieClip(parent.parent.parent);
trace(container.name)//HELP
Root=MovieClip(parent.parent.parent.parent);
trace(Root)//[object MainTimeline]
trace(Root.name)//root1
//container.getChildByName("help").getChildByName("help").content.menuPress();//1*) it works
Root.getChildByName("HELP").getChildByName("help").getChildByName("help").content.menuPress();
//2*)
// it doesn't work
//1061: Call to a possibly undefined method getChildByName through a reference with static type flash.display:DisplayObject.
}
}
why 1* works but 2* only one level higher (root) doesn’t work
the error start immidiately when I test current swf not main movie which load this swf
sorry for my english