Flash preloader
#1
Posted 05 January 2006 - 05:52 AM
Another thing is, once it's loaded up to 100% i want the movie clip to continue playing with in the movie clip instead of jumping to the next frame in the scene. It won't do this this. It just stops and won't go to the next frame in the movie clip.
I've been trying to fix this problem for about 2 hours now, and i'm stumped! can anyone help? I can easily send you a copy of the .fla file if ur confused about the situation.
Thanks, Callum
#2
Posted 05 January 2006 - 06:41 AM
#3
Posted 05 January 2006 - 06:47 AM
Quote
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
light._alpha = per;
if (percent>99) {
gotoAndPlay(13);
}
}
there ya go
#4
Posted 05 January 2006 - 06:53 AM
#5
Posted 05 January 2006 - 06:59 AM
#6
Posted 05 January 2006 - 07:08 AM
send it to *edited*
Edited by funkysoul, 05 January 2006 - 07:16 AM.
#7
Posted 05 January 2006 - 07:12 AM
#8
Posted 05 January 2006 - 07:22 AM
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
light._alpha = per;
if (per>=99) {
_parent.gotoAndStop(2);
}
}
the problem was that your loader was always stuck at 99, and with the operator > are you telling flash, that if percent is higher than 99 he should go to and play.
> - greater than
>= - greater or equal
have fun
Funkysoul
Edited by funkysoul, 05 January 2006 - 07:23 AM.
#9
Posted 05 January 2006 - 07:33 AM
#10
Posted 05 January 2006 - 07:43 AM
There is nothing else after the image frame..
#11
Posted 05 January 2006 - 07:52 AM
"_parent.gotoAndPlay(2)"
code but i want it to play the rest of the movie clip but it won't. It just stops after it's loaded the movie and won't play the rest of the clip.
#12
Posted 05 January 2006 - 08:02 AM
here the code for the preloader mc
onClipEvent (enterFrame) {
var loading = _parent.getBytesLoaded();
var total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
var per = int(percent);
var percentage = per+"%";
light._alpha = per;
if (per>=99) {
this.play();
}
}
and the code for frame 11 of the movieclip
stop();
if (per>=99) {
gotoAndPlay(13);
}
Have fun
Tiago
#13
Posted 05 January 2006 - 08:09 AM
Thank you ever so much man! can't thank you enough!!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
