FLASH Doctor please!
FLASH Doctor please!
- Started
- Last post
- 0 Responses
- krust
Can anyone help me out with adapting this script....
basically it loads a random jpg into movieTarget (while it's loading it plays mc_1 - loading animation).if possible i want to do 2 things...
1) eradicate the need for a loop frame (have it all in one frame)
2) preload the whole movie (including navigation + all frames etc...) before proceeding.// frame 1
filename = ["1.jpg", "2.jpg", "3.jpg"];
path = "images/"
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);// frame 2 (nothing)
// frame 3
actBytes = movieTarget.getBytesLoaded();
totBytes = movieTarget.getBytesTotal();
percent = Math.round(actBytes*100/totBytes...
if (totBytes-actBytes>0) {
gotoAndPlay(2);
_root.mc_1.play();
}
//