jeffmc21
01-16-2008, 02:58 PM
I'm trying to complete my first all Flash site and within this site, I have a loader instance that loads a separate SWF into the main SWF. I was wanting to add a progress bar while the embedded SWF is loading. It's not exactly necessary, but I think it will add some aesthetic quality to the site. However, the progress bar isn't working. It isn't tracking any progress and it isn't disappearing upon the loading of the SWF. The loader instance occurs within a graphic that is inside of a movie clip, if any of that matters.
Here's the actionscript I used:
var pbListener:Object = new Object();
pbListener.progress = function(evt) {
evt.target._visible = true;
};
pbListener.complete = function(evt) {
evt.target._visible = false;
};
pbCalendar.addEventListener("progress", pbListener);
pbCalendar.addEventListener("complete", pbListener);
Here's the actionscript I used:
var pbListener:Object = new Object();
pbListener.progress = function(evt) {
evt.target._visible = true;
};
pbListener.complete = function(evt) {
evt.target._visible = false;
};
pbCalendar.addEventListener("progress", pbListener);
pbCalendar.addEventListener("complete", pbListener);