initialize="initTimer()">
import mx.collections.ArrayCollection;
import flash.utils.Timer;
import flash.events.TimerEvent;
[Bindable]
public var time:Number = 0;
[Bindable]
public var totmem:Number = 0;
public function initTimer():void {
var myTimer:Timer = new Timer(1000, 0);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}
public function timerHandler(event:TimerEvent):void {
time = getTimer()
totmem = flash.system.System.totalMemory;
}