cperes
09-26-2006, 05:36 PM
Hi all,
I've been looking for a preloader that works in flash 8 in all kind of forums for the past 2 hours and I can't seem to find it.
I have this code in a preloader movieclip with another mc called loadBar and a dynamic text with a variable called percentage inside. And this is the code I have on it:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
I took it from another thread and it works fine when exported as flash player 6 and 7 but when I try it with Flash 8 it doesn't... it stays stopped in 0%. I don't know why, and I can't seem to figure it out. I only want to preload the general movie in which I charge the others and I'm getting desperate.
Thanks for the future help! :)
PS. I'm attaching the movie that I found in the other thread (in flash 4 and 5 forum I think). Please try to publish it in flash player 8 to see what I mean
I've been looking for a preloader that works in flash 8 in all kind of forums for the past 2 hours and I can't seem to find it.
I have this code in a preloader movieclip with another mc called loadBar and a dynamic text with a variable called percentage inside. And this is the code I have on it:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
I took it from another thread and it works fine when exported as flash player 6 and 7 but when I try it with Flash 8 it doesn't... it stays stopped in 0%. I don't know why, and I can't seem to figure it out. I only want to preload the general movie in which I charge the others and I'm getting desperate.
Thanks for the future help! :)
PS. I'm attaching the movie that I found in the other thread (in flash 4 and 5 forum I think). Please try to publish it in flash player 8 to see what I mean