# LoadMovie in AS3.. Please help :)

**URL:** https://forum.kirupa.com/t/loadmovie-in-as3-please-help/304483
**Category:** flash
**Created:** [February 8, 2010, 7:33pm UTC](https://forum.kirupa.com/t/loadmovie-in-as3-please-help/304483 "2010-02-08T19:33:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RJM1985](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@RJM1985](https://forum.kirupa.com/u/RJM1985)
#### Post date: [February 8, 2010, 7:33pm UTC](https://forum.kirupa.com/t/loadmovie-in-as3-please-help/304483/1 "2010-02-08T19:33:58Z")

</div>

I need some help with my gallery.  
I have 2 files.

web.fla and gallery.swf  
i want to load the gallery file into web.fla, but i have a problem.  
When i press the buttons it work fine, except when i want to go to the gallery, and then after that to another page.  
Once i have entered the page with the gallery, and want to move on to a different page the gallery continues to be there on every single page.  
I don’t have a lot of experience i asctionscript 3, so experts… please help me :proud:

Have a look at the code:

hjem.addEventListener(  
MouseEvent.MOUSE\_UP,  
function(evt:MouseEvent):void {  
gotoAndPlay(“billede1”);  
}  
);  
biografi.addEventListener(  
MouseEvent.MOUSE\_UP,  
function(evt:MouseEvent):void {  
gotoAndPlay(“billede2”);

}  
);  
art.addEventListener(  
MouseEvent.MOUSE\_UP,  
function(evt:MouseEvent):void {  
gotoAndPlay(“billede3”);

var ld:Loader = new Loader()  
ld.load(new URLRequest(“galleri.swf”))  
addChild(ld)  
}  
);  
kontakt.addEventListener(  
MouseEvent.MOUSE\_UP,  
function(evt:MouseEvent):void {  
gotoAndPlay(“billede4”);  
}  
);
