Прошу...

Код AS3:
package {
import flash.text.TextField;
import flash.display.Sprite;
import flash.events.Event;
import flash.system.System;
public class Systems extends Sprite {
var txt:TextField=new TextField();
public function Systems(x:Number=10,y:Number=10):void {
addChild(txt);
with (txt) {
autoSize="left";
this.x=x;
this.y=y;
width=10;
height=10;
border=true;
}
addEventListener(Event.ADDED_TO_STAGE, onStage);
}
function onStage(e:Event):void {
removeEventListener(Event.ADDED_TO_STAGE, onStage);
addEventListener(Event.ENTER_FRAME, fps);
}
function fps(e:Event):void {
System.gc();
txt.text="Memory: "+Math.ceil(System.totalMemory/1024*100)/100+"Kb, FPS: "+stage.frameRate;
}
}
}