| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
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 |
|
|
|
|
|
#5 (permalink) |
|
Iris Folder
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:
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. |
|
![]() |