all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

having progress bar disappear


having progress bar disappear jason25
12/15/2004 11:41:15 PM
flash actionscript: hi guys i'm fairly new to flash and have a question.i have built a flash movie
with mx 2004 and saved it as an swf. i have then created another flash doc.
that contains a layer with a loader and another layer with a progress bar.this
all works fine but after the movie fully loads the progress bar is still
visible on the movie. how can i make it disappear after it loads and the movie
starts? here is the script that i am using.


loader.autoLoad = false;
loader.contentPath = "TESTMOVIE.swf";
pbar.source = loader;
// loading does not start until the load method is invoked
loader.load();
Re: having progress bar disappear kglad
12/16/2004 12:48:59 AM
Re: having progress bar disappear jason25
12/16/2004 1:57:28 AM
well if i make the pbar invisible then it cannt be seen as the loading is
occuring,correct? bare with me i do not have alot of exp. with flash as of yet.
is there a script that i need to add?if there is what is it and where in the
script i am using do i add it?all i want to be able to do is see the percent
loader with the pbar as the movie is loading then have the pbar disapper when
the movie starts playing.
Re: having progress bar disappear kglad
12/16/2004 6:49:23 AM
well, you wouldn't execute pbar._visible=0; or pbar.unloadMovie() until loading is complete. for example, attached to your loader component:

on(complete){
_root.pbar._visible=0;
AddThis Social Bookmark Button