PDA

View Full Version : Progress Bar


angerbee
03-17-2009, 09:44 PM
I cannot figure out how to wire a ProgressBar to a FileReference. It seems to me that I would just set the ProgressBar.mode="event" and ProgressBar.source="fileref", but I am not getting anything.

I have an Event Listener added to the FileReference that is doing:

lblProgress.text = "Loaded " + evt.bytesLoaded.toString() + " of " + evt.bytesTotal.toString();

and this works just fine. But when I set ProgressBar.mode="polled" and then add to the Event Listener

pb.SetProgress(evt.bytesLoaded, evt.bytesTotal);

I get nothing.

Peter Cowling
03-19-2009, 07:55 PM
Try checking the code you have against this step-by-step guide from Adobe (http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001938.html).