Hi, I have main.mxml and an external class com.audio.AudioPlayer.as
AudioPlayer loads an audio file and has an event for counting bytesLoaded and bytesTotal.
I would like to push the bytesLoaded information continuously as its being loaded into a label on main.mxml from the ProgressEvent.PROGRESS
snd.addEventListener(ProgressEvent.PROGRESS, listenProgress);
private function listenProgress(event:ProgressEvent):void
{
progressID.text = event.bytesLoaded + " / " + event.bytesTotal;
}
I can't find a way to target the label control in main.mxml, from inside AudioPlayer and to continuously update the byte count.
Any help, much appreciated...