|
-
-
Senior Member
how long is the water animation...is it something that plays left to right, or are you setting a mask? Is it a video that plays smoothly or was it created in flash?
-
It runs continuously, it has a mask so that it doesnt come put of the required area and is embeded as a video...it runs smoothly.
thanks.
-
Senior Member
Have your preloader movie go 100 frames (animating the water going from left to right from frame 1) and put a stop() action on the first frame. On the main timeline action layer put this action:
Code:
stop();
this.onEnterFrame = function() {
var loadedB = this.getBytesLoaded();
var totalB = this.getBytesTotal();
var percent = Math.round((loadedB/totalB)*100);
percent_txt.text = percent+"%";
waterBar_mc.gotoAndStop(percent);
bytes_txt.text = loadedB+"/"+totalB;
if (percent >= 100) {
gotoAndPlay("mainMovie_frame");
delete this.onEnterFrame;
}
}
You'll have to change the names to match your MC's and textFields but this should give you a start.
Let me know if this is what you are looking for.
-
Hey man, thanks a lot for helping me out, any chance you could repost the code with the highlighted areas that I need to change?
thanks!
Nick.
-
Senior Member
the only things you need to change is the "percent_txt" name, "waterBar_mc" name, and "bytes_txt" name. Your dynamic text boxes should have instance names as well as your water animation movieClip. Just change these names to match whatever you called them.
-
Ok thanks, it seems to be working a little bit. It seems to preload a bit and the data and percentage bits work a bit, but the preloader shows, then goes and then the rest of the flash movie is loaded. Shall I PM you the fla and you could meybe take a little look for me? thanks for the help so far 
peace.
-
Senior Member
I'll take a look at it if you want me to...I'm not sure I know exactly what is happening from your description. How large is the swf at this point...is it loading a lot of data? Also, what version of Flash are you using?
-
Ok thanks I will PM you. Well I am making a preloader to be put onto an swf but the swf hasnt been created yet, I am making the preloader first. I am using Flash 8 Professional.
-
Senior Member
I've replied to your PM...let me know when you get it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|