John Kirby wrote:


Dan Rossi said the following:
John Kirby wrote:

 public function timeHandler(event:TimerEvent):void{
            this.elapsedTime = stream.time
            rFlex.bar.setProgress(new Number(this.elapsedTime),uint(mmd.duration));
            if(this.elapsedTime >= uint(mmd.duration)){
                this.elapsedTime  = 0;
                dispatchEvent(new Event(TimerEvent.TIMER_COMPLETE));
            }
        }


<mx:ProgressBar>


Ok great must of missed that.
I looked at DateFormatter and I couldn't figure how to take just seconds and convert it to the string (00:00:00).      If there is a simpler way ... someone please show me.

 <mx:DateFormatter id="playHeadTimeFormat" formatString="NN:SS"/>

private function updatePlayHead(event:TimerEvent):void
{
    playHeadTime.setMinutes(0,ns.time,0);
    preloadBar.playHeadTime.text = playHeadTimeFormat.format(playHeadTime).toString();
}

this is what i have, it seems to do funky stuff with ram, u can monitor that with the System.totelMemory setting, im not sure if   it will show hours.

statusBar.statsMemoryUsed.text = Math.round(flash.system.System.totalMemory / 1000000).toString();

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to