All the help says about setting ProgressBar.mode="polled" is:


polled: The source property must specify an object  that exposes
getBytesLoaded() and getBytesTotal()  methods. The ProgressBar control calls
these methods to update its status.

But this doesn't seem to be true.  For example, it seems
ProgressBar.commitalways wants to do this to the source:
                   _source.removeEventListener(ProgressEvent.PROGRESS,
progressHandler);
                   _source.removeEventListener(Event.COMPLETE,
completeHandler);

Which is a real drag if your source was going to be a simple little object
with just getBytesLoaded() and getBytesTotal() methods.

It's a bit silly that the code always tries to remove these event listeners
whenever you set the source, since these event listeners never got set to
begin with (the source was empty before setting it).

Is there something I'm missing or is the mode="polled" setting a bit funky?
My searches seem to show very little information for people using it this
way.

--
Jason

Reply via email to