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!

Scripting in Flash 5 for percent of movie loaded

Status
Not open for further replies.

selah1

Technical User
Aug 12, 2001
8
US
Can any one help me modify the preloader percent
graphic script that is explained in This months MacWorld issue?
I want the percent loaded bar to reflect an arbitrary
frame number as being "100 percent of Flash movie loaded".
In other words. i would like the visitor to be able to see
a bar expanding from left to right revealing ( what I would call 100 percent) of the movie loaded.
The file might be big but like an "ifFrameLoaded" expression, I want the bar to be full and
Movie start pryor to all "totalframes" being loaded.
Because at 28kb my movie can start being 60percent
loaded.

The script in the Mac world issue allows a full bar only when taotal frames loaded is ebery one of them in the Flash file.
Thank you for your help.
Flash 5 MAC
 
Could you post a copy of this script so that us PC users could take a crack at it? ;-)
 
hi

as you mentioned preloaders usually state that the movie should play when _totalframes=_framesloaded or getbytesloaded()=getbytestotal().

But there is nothing stopping you from utilising a percentage expression. So if you reckon that you can get away with the movie starting at 60% then your scripting would take the form:

if (((_root.getbytesloaded()/_root.getbytestotal())*100)>=60) {
_root.gotoandplay("moviestart");
}

....where "moviestart" would be a label assigned to the first frame of your movie.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
PLEASE GO TO



and click on the net area.
It will take you to sample images of my question
concerning Percent Loaded grapohic bar scripts
using Flash 5 on a MAC
Greg
 
Selah,
Tell me this...
Am I right in assuming you want your movie to start when 60 % is preloaded, because you feel that would allow the rest ( 40%) of the movie to download while we're seeing the beginning?
Do I also understand that at the 60% mark, you want your bar to display an artificial 100% loaded, even if only 60% have actually downloaded? Or should it display the actual percent loaded?
mywink.gif
ldnewbie
Hope that this
was helpful!
 
BTW Selah,
Steps 5 & 6 are not available in your link!
Those are the steps we need to see!
mywink.gif
ldnewbie
Hope that this
was helpful!
 
This forum is awesome!
Thanks to all you generous Experts.
If you ever have Digital Video Non linear questions?
I will help.
Much thanks
Greg
 
Does that mean your problem is solved?
mywink.gif
ldnewbie
Hope that this
was helpful!
 
Well...
...doesn't show up in IE or NS! Get broken picture icons!
And it's the only one that doesn't show up!
Maybe it's a sign! Or maybe you should just upload it again!

Awesome?
Nobody here is awesome... Well maybe Luke Whitetiger is!
mywink.gif
ldnewbie
Hope that this
was helpful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top