I'm using the 2004pro component progress bar and i'm using it with the scrollpane inside my movie. it works just fine except for the fact that after it's all loaded, it won't go away........
does anyone know a script to hide the progress bar after it's done loading?
here's the example.....
www.asmatic.ca
Referring URLs
http://www.asmatic.ca
What usually happens is the preloader goes on frame one of the mc, then the
last thing the preloader does is gotoAndPlay(2);
the 2 being frame 2. So on the layer that contains your preloader, you
insert an empty keyframe on frame 2
> I'm using the 2004pro component progress bar and i'm using it with the scrollpane inside my movie. it works just fine except for the fact that
after it's all loaded, it won't go away........
> does anyone know a script to hide the progress bar after it's done loading?
>
[quoted text clipped - 4 lines]
> Referring URLs
> http://www.asmatic.ca
Markooshio - 29 Jan 2004 01:56 GMT
well, i think the theory is correct, but this is not a preloader, it's just a progress bar component.....I put it in it's own mc and a blank frame on frame 2 and did not work. what I need is a script that tells my pBar to goto frame 2 when it's 100% loaded.....
chieffan - 30 Jan 2004 19:17 GMT
I found some nice tutorials at Ultrashock.com and they had a great tutorial on the progress bar and used a class to load it and an event listener to make it hide.
// create event listener object for the loader
myLoaderListener = new Object();
// click event handler
myLoaderListener.complete = function ( eventObject )
{
myProgressBar._visible = false;
}
// register the event listener
myLoader.addEventListener("complete", myLoaderListener);
Referring URLs
http://www.ultrashock.com/
Markooshio - 31 Jan 2004 16:49 GMT
you know, you've been very helpful with this problem for me, but i found the answer on my own with a little digging i found this.....
on (complete) {
with (this._parent) {
gotoAndStop(2);
}
}
that little piece of code goes right on the progress bar inside it's own movie.
give myself a pat on the back!
on (complete) {
with (this._parent) {
gotoAndStop(2);
}
}
Markooshio - 31 Jan 2004 16:51 GMT
you know, you've been very helpful with this problem for me, but i found the answer on my own with a little digging i found this.....
on (complete) {
with (this._parent) {
gotoAndStop(2);
}
}
that little piece of code goes right on the progress bar inside it's own movie.
give myself a pat on the back!