# Navigating

**URL:** <https://forum.kirupa.com/t/navigating/308929>\
**Category:** flash\
**Created:** [May 3, 2010, 3:23pm UTC](https://forum.kirupa.com/t/navigating/308929 "2010-05-03T15:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ishkandar](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ishkandar](https://forum.kirupa.com/u/Ishkandar)\
**Post date:** [May 3, 2010, 3:23pm UTC](https://forum.kirupa.com/t/navigating/308929/1 "2010-05-03T15:23:14Z")

</div>

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]
