Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

% of frames loaded

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
okay great programmers in the sky.....
I'm trying to figure out the nubmer of frames loaded in an if statement

if (this, currentframe >= 95% of totalframes)

do something;

my brain is froze

any help

thanks
jef
 
Is this the exact code your using?
A little context maybe!

Regards,
mywink.gif
ldnewbie
 
no,

just my idea of what it should do,

I think that

if (framesloaded == totalframs)

will do the same think..right? jef
 
hey there jef--

try something like this (pseudo-code):

percentvar = .95 // percent you're looking for
if (framesloaded >= (totalframes*percentvar) {
gotoAndPlay ('movie')
}

hope that helps a bit.. you can also search for "preloader" in this forum or at flash samples sites ( is decent).

-- michael~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top