[Red5] Red5 Flex Demo Up!

Dan Rossi spam at electroteque.org
Thu Nov 9 22:33:24 EST 2006


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();

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20061110/656fa2f0/attachment.htm


More information about the Red5 mailing list