Hi, i'm having a problem with my flash file but i'm not sure what it is that i'm doing wrong.
The site starts with a preloader and loads up a simple shell, then once thats loaded i want it to dynamically load the home.swf into an empty movieclip, only it doesn't, but when i click on any of the links the .swf's will load into the blank movieclip just fine, so i know they work alright.
Here's the actionscript for the first frame:
stop();
myInterval = setInterval(preloader,10);
function preloader(){
if(getBytesLoaded()>=getBytesTotal()){
play();
clearInterval(myInterval);
}
preloaderText.text=Math.round(getBytesLoaded()/getBytesTotal()*100)+"%"
preLoadBar.mask._yscale=(getBytesLoaded()/getBytesTotal()*100);
}
After that's loaded it goes onto the next frame with this actionscript:
stop();
onLoad = function(){
external_swf_mc.loadMovieNum("home.swf", 0);
}
button_home.onRelease = function(){
external_swf_mc.loadMovie("home.swf");
}
I've tried using google to find an answer but no luck so far, i tried using onEnterFrame but that seems to break it, does anyone have any ideas?
Cheers.