Old 08-01-2007, 13:21   #1 (permalink)
suketo
Registered User
 
Join Date: Dec 2006
Posts: 76
loadbar/pre loader

Hi

Does any one know how to make a pre loader where the getBytesLoaded/getBytesTotal determines how much of a movieclip is played instead how much width is shown (in a standard pre loader).

I have search the internet and cant find anything on it just about normal load bars (example the _root.getBytesLoaded()/_root.getBytesTotal(); loader._width amountloaded *..ect) if anyone can help would be great.

Thanks
  Reply With Quote
Old 08-01-2007, 13:26   #2 (permalink)
Keenen
Senior Member
 
Join Date: Nov 2006
Posts: 177
  Reply With Quote
Old 08-01-2007, 13:30   #3 (permalink)
suketo
Registered User
 
Join Date: Dec 2006
Posts: 76
cheers for that, ill check that out.
  Reply With Quote
Old 08-01-2007, 13:35   #4 (permalink)
suketo
Registered User
 
Join Date: Dec 2006
Posts: 76
hmmm.... actually that not really what im after, thanks anyway.
  Reply With Quote
Old 09-01-2007, 08:46   #5 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,649
Are you looking to move the clip on frame by frame? or to loop it to a certain point as the load progresses? or something else.

The easiest is the first. Make a clip of 100 frames with your animation in it (or 99 depending how you're handling the end).

Then rather than using the percentage value you work out to alter the width use it to send the clip to a frame...

Code:
status_mc.display_mc.gotoAndStop(int(percent));

That's the easiest way, need more frames use maths to stage it in half percent or whatever. Of course in the case playback speed is determined by download rate.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8