How to force preloader countdown

hello. I was wondering how to force a preloader countdown? I saw this done on this site:

I used this tutorial from kirupa:
http://www.kirupa.com/developer/mx/percentagepreloader.htm

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?

Thanks for any help!!
k
:azn:

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 :wink:
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…

Prophet.

i do try that but it’s gettin messy maybe something wrong with my preloader code…

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)

function FPercent(){
if(ForcedPercent != percent){
ForcedPercent++
}
if(ForcedPercent == 100 == percent){
clearInterval(forceP)
gotoAndStop(3);
}
}

Do you know why it is not being forced into counting up to 100 percent?

Thanks again!!
I attatched the file too…