AnonymousCaller
April 23rd, 2003, 06:03 PM
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:
bytes_loaded = Math.round(_root.movie.getBytesLoaded());
bytes_total = Math.round(_root.movie.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._xscale = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
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
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:
bytes_loaded = Math.round(_root.movie.getBytesLoaded());
bytes_total = Math.round(_root.movie.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._xscale = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
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