In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: StageInfo

Get Adobe Flash player
by hacker_alqfxqhw 08 Mar 2009
    Embed
// 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;
        } 
    } 
}