# unloadAndStop Problem

**URL:** <https://forum.kirupa.com/t/unloadandstop-problem/320825>\
**Category:** flash\
**Created:** [April 2, 2011, 8:35pm UTC](https://forum.kirupa.com/t/unloadandstop-problem/320825 "2011-04-02T20:35:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sizzle89](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Sizzle89](https://forum.kirupa.com/u/Sizzle89)\
**Post date:** [April 2, 2011, 8:35pm UTC](https://forum.kirupa.com/t/unloadandstop-problem/320825/1 "2011-04-02T20:35:15Z")

</div>

I currently have a splash page which uses a variety of tweens to make an animation of a character running. The splash page also has music playing in the background and a small skip button (located in the corner) which is given the instance name “reelButton”.

I want the splash page to link to a loading page (file name “loading\_screen.swf”) i have created which uses a black background and an animation of a skull rotating.

When i press the skip button, it does navigate to the loading page but the character running from the splash page and the music is still playing. I know its because i need to use the unloadAndStop command to stop all the movie clips from the splash page. But even with this it still doesnt seem to work.

Below is the code:

var contentLoader:Loader = new Loader();  
addChild(contentLoader);  
reelButton.addEventListener(MouseEvent.CLICK, reel);  
function reel(event:MouseEvent):void {  
loadURL(“loading\_screen.swf”);  
}  
function loadURL([COLOR=#004477]url:String):void[/COLOR] {  
contentLoader.unloadAndStop();  
var request:URLRequest = new URLRequest(url);  
contentLoader.load(request);  
}

I would greatly appreciate if anyone could help me. Thanks
