MX - variables - progress bar

I am struggling with trying to deal with variables & loading.

I have two movies:

one - is the Player - it has a progress bar, much like preloading bar. it gets these from…

two - the footage it has a looping MC in it that runs the progress bar with the following code:

[SIZE=1][COLOR=seagreen] bytes_loaded = Math.round(_root.movie.getBytesLoaded());
bytes_total = Math.round(_root.movie.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._xscale = getPercent100;
_root.loadText = Math.round(getPercent
100)+"%";[/COLOR] [/SIZE]

You have to constantly refresh the values; hence the loop.

I need to move this to the main movie. Did I mention that this is all loaded dymanically? movieName=“video1.swf”

Can I swap the _root.movie.getBytes… with the variable so that it’ll gauge the progress of the load? Haven’t figured out have to make it actually work.

The next logical step is to have an icon that shows where the viewer is in the movie. If anybody has a clue how to do that, that would also be helpful.

AC

http://www.mdbprojects.net/interface2.html

is this sort of what you are looking for?

markcq:alien:

markcq-

Thanks for the script. Unfortunately, that won’t work for a couple of reasons. It’s preloader script in that it doesn’t let you watch the loading movie as it loads. If you go to my link yo ucan see how it actually starts to play as it loads. Since there is not _root.gotoThe progress - and I mean progress not preload - bar measures the precentage loaded and sends that # to the parent movie to appear on the loadBar.
What I need is to figure out how to measure the loading of the child movie from the parent movie.

Any ideas?
AC

you want to movie to “stream” while its loading you want it to play as well?

i checked the link out… i get what you are trying to do…

don’t know if this will help… just a thought…

if you put the movie in an external flash file (another .swf file) and place it into the main movie with the loadMovieNum function

example:
loadMovieNum(“movie.swf”, 2);
//2 will set the z-index of the movie

could you link the percentage with the movie.swf file size (getBytesTotal(); and getBytesLoaded();)?

i still think a preloaded might work better. movies with sound is even slower so i don’t know how this will work??? if it was text based or flash graphics then its easier to “stream” it…

sigh dunno either… maybe this sparks some new thought…

good luck
:alien: