I have a page called blue.swf that automatically loads another page called star.swf.
//CODE//
var RECIPIENT:Sprite = new Sprite();
RECIPIENT.x = 0;
RECIPIENT.y = 100;
addChild(RECIPIENT);
var myLoader:Loader = new Loader();
myLoader.load(new URLRequest(“star.swf”));
RECIPIENT.addChild(myLoader);
//END CODE//
The page star.swf has a button inside to call another page hexagon.swf. [COLOR=#000000][SIZE=3][SIZE=2]My goal is that hexagono.swf is loaded in the same place that was star.swf ie on RECIPIENT of the page blue.swf father of two.
//CODE star.swf//[/SIZE]
[/SIZE][/COLOR]var main:MovieClip;
main = MovieClip(parent.parent);
btnHexagon.addEventListener(MouseEvent.CLICK, clickHandlerHexagon);
function clickHandlerHexagon(e:MouseEvent):void
{
main.myLoader.load(new URLRequest(“hexagon.swf”));
}
//END CODE//
But it is not working. Any idea?
[COLOR=#000000][SIZE=3]
[/SIZE][/COLOR]