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.