but I guess my file is not heavy enough to start from one up to 100. It starts at like 40 and up to 80, then right into the movie. So I was wondering if I could force the preloader to go from 1 to 100?
yer, ill take your % complete variable as being called percent (creative i know… but hey!)
now then on your preloader, make your text box equal a variable called ForcedPercent.
now on your code have a simple setInterval function like so:
forceP = setInterval(FPercent,x)
where x is however long you want in ms
now declare a function as such:
function FPercent(){
if(ForcedPercent != percent){
ForcedPercent++
}
if(ForcedPercent == 100 == percent){
clearInterval(forceP)
// any other code you want to run on preloader completion suchas a goto or a hide (*._visible*) action...
}
}
hope this works4u… also, if you have preloader bars etc use the variable ForcedPercentage to work out their width/height/alpha/x/y values etc…
hey there. thanks for helping. i tried to use the code, but it didnt show the countdown. I set up three frames. The third frame is where I want to go after the preloader completes. On the first frame I have this
(dynamic text box named Var=ForcedPercent):
forceP = setInterval(FPercent,x)