# Load Movie help

**URL:** <https://forum.kirupa.com/t/load-movie-help/285657>\
**Category:** Uncategorized\
**Created:** [April 3, 2009, 3:48pm UTC](https://forum.kirupa.com/t/load-movie-help/285657 "2009-04-03T15:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ierick7](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ierick7](https://forum.kirupa.com/u/ierick7)\
**Post date:** [April 3, 2009, 3:48pm UTC](https://forum.kirupa.com/t/load-movie-help/285657/1 "2009-04-03T15:48:21Z")

</div>

I have a random script that runs perfect… when I put content on the frame label (or scene, I’ve tried both ways) it randomly goes from one to another no problem for the set interval.

## My problem arises with the following code when I try to load an external swf… that it only stays on this loaded movie, and will not unload it no matter what I try.

stop();

onEnterFrame = function () {  
content\_mc.loadMovie(“adSWF/250x154/ecvm-a09\_v1e.swf”);  
};

var timePause = setInterval(Play, 1000);

## function Play() { clearInterval(timePause); unloadMovie(“content\_mc”); gotoAndPlay(“startIt”, 1); }

Right now it will not load the external swf in the above code, but I have tried all of the following.

this.loadMovie(“adSWF/250x154/ecvm-a09\_v1e.swf”, content\_mc); (have used \_root.loadMovie as well)  
/movie does not load, but switches to random label/

this.loadMovie(“adSWF/250x154/ecvm-a09\_v1e.swf”); (have used \_root.loadMovie as well)  
/movie does load, but does Not switch to random label/

any ideas?

by the way “gotoAndPlay(“startIt”, 1);” takes it back to the first frame label to then generate the random code that works when external swf are not loaded. I have also tried using “gotoAndPlay(random(5)+1);”, still the same thing.

Thanks.
