help: flash preloader to image loading
help: flash preloader to image loading
Out of context: Reply #3
- Started
- Last post
- 3 Responses
- unfittoprint0
Either use the new movieClipLoader class in MX2004:
http://livedocs.macromedia.com/f…or make a loader symbol [with a linkage name "loader"]
inside it:chckLoad=function(targetMC){
trace(Math.round((targetMC.bytes...
if(targetMC.bytesLoaded() == targetMC.bytesTotal() && targetMC.bytesTotal() > 100){
clearInterval(loadLoop);
this.removeMovieClip()
}
}startLoad = function(targetMC, targetURL){
targetMC.loadMovie(targetURL);
loadLoop=setInterval (this, "chckLoad", 30, targetMC);
}then on the main stage:
attachMovie("loader","loader", 100, {targetMC:image1,targetURL:'img...