Hey, i am working on an intro for a friend of mine and it includes a lot of individual photos. the preloader takes forever but i can figure out how to only load half of the movie instead of the entire thing before it plays. here’s the code i have for the preloader itself:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
if (percent == undefined) percent = 0;
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
if (percent>99) {
_parent.gotoAndPlay(40);
}
}
here’s a link to the current test page so you can see the entire intro and how long it takes now with that code to load. i just want it to load part of the file instead of waiting for all of it. thanks in advance.
http://thehardestartist.com/home.html
i want it to go from 0-100% and only load a certain amount of the movie instead of all of it cause it just takes way too long. if i can have it load just a certain number of bytes or to a certain frame either way would be awesome. thanks again.