forked from: StageInfo
// forked from narabekaeru's StageInfo
package {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
[SWF(width = "465", height = "465", backgroundColor = "0xfff2f2", frameRate = "30")]
public class StageInfo extends Sprite {
public static var list:Array = [
"stageWidth",
"stageHeight",
"width",
"height",
"fullScreenHeight",
"fullScreenWidth",
"fullScreenSourceRect",
"align",
"displayState",
"focus",
"frameRate",
"mouseChildren",
"numChildren",
"quality",
"scaleMode",
"showDefaultContextMenu",
"stageFocusRect",
"tabChildren",
//"textSnapshot",
"accessibilityProperties",
"blendMode",
"cacheAsBitmap",
"constructor",
"contextMenu",
"doubleClickEnabled",
"filters",
"focusRect",
"loaderInfo",
"mask",
"mouseEnabled",
"mouseX",
"mouseY",
"name",
"opaqueBackground",
"parent",
"prototype",
"root",
"rotation",
"scale9Grid",
"scaleX",
"scaleY",
"scrollRect",
"stage",
"tabEnabled",
"tabIndex",
"transform",
"visible"];
public function StageInfo(){
var str:String = new String();
for(var i:String in list){
str += "stage."+ list[i] + ": "
try{
str += stage[list[i]];
}catch(e){
str += e;
}
str += "\n"
}
var field :TextField = new TextField();
field.width = stage.stageWidth;
field.height= stage.stageHeight;
addChild(field);
field.text = str;
}
}
}