.swf PARENT and .swf CHILD (loader) - root/goto
Hello,
(excuse my bad english)
I load a .swf Child from a .swf Parent with this code :
------------
var conteneurImage1:Loader = new Loader();
var image1:URLRequest = new URLRequest("URLadress");
conteneurImage1.load(image1);
this.addChild(conteneurImage1);
------------
When the Child is loaded, I want to create a button that goes to the parent instance in position 3. I write this :
------------
bouton2.addEventListener(MouseEvent.CLICK, bouton2d);
function bouton2d(event:MouseEvent):void
{MovieClip(root).gotoAndStop(3);}
------------
It does not work !
I try with "{MovieClip(parent.parent).gotoAndStop(3);}" or "{MovieClip(parent.parent).gotoAndStop(3);}"... Nothing !
The player goes to the position 3 at the Child. It stays in the Child.
I thank you VERY MUCH to help me. ![]()
