ちょっとの間大崩れするかもです。
画像テスト
あああああstrongテストあああああ
画像テスト
h3テスト
あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああh4テスト
あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
コード表示テストpackage classes
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.utils.getTimer;
import flash.events.Event;
public class Fps extends Sprite
{
private var time :Number;
private var frameTime :Number;
private var prevFrameTime :Number = getTimer();
private var secondTime :Number;
private var prevSecondTime :Number = getTimer();
private var frames :Number = 0;
private var fpsnum :String = "...";
private var tf:TextField;
private var iBar:Sprite;
public function Fps()
{
init();
}
private function init():void
{
iBar = new Sprite;
iBar.graphics.beginFill(0x990033 , 1);
iBar.graphics.drawRect(0 , 0, 100 , 15);
iBar.graphics.endFill();
addChild(iBar);
tf = new TextField();
tf.defaultTextFormat = new TextFormat(null , 9 );
tf.textColor = 0xFFFFFF;
addChild(tf);
addEventListener(Event.ENTER_FRAME,onEnterFrameHandler);
}
private function onEnterFrameHandler(event:Event):void
{
time = getTimer();
frameTime = time - prevFrameTime;
secondTime = time - prevSecondTime;
if(secondTime >= 1000) {
fpsnum = frames.toString();
// if( VERBOSE ) trace( "FPS: " + fps );
frames = 0;
prevSecondTime = time;
}
else
{
frames++;
}
prevFrameTime = time;
tf.text = ((fpsnum + " FPS / ") + frameTime) + " MS";
iBar.scaleX = iBar.scaleX - ((iBar.scaleX - (frameTime /10)) / 5);
}
}
}
blockquotetest
comments
テストおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおおお