コンテンツ再生には最新のFlash Playerが必要です。You need the latest Adobe Flash Player to play the movie. Adobe - Flash Player Download

Source code of the above SWF

Fl027_StageConscious.as
package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.Event;
    
    [SWF(width="550",height="400",frameRate="1")]
    public class Fl027_StageConscious extends Sprite{
        private var _textField:TextField;
        
        /**
         * Constructor
         */ 
        public function Fl027_StageConscious(){            
            _textField = new TextField();
            _textField.width = 550;
            _textField.height = 400;
            this.addChild(_textField);
            this.addEventListener(Event.ENTER_FRAME,onEnterFrame);
            
            _textField.appendText("[In Constructor]");
            _textField.appendText(" stage.stageHeight: " + stage.stageWidth);
            _textField.appendText(" stage.stageHeight: " + stage.stageHeight);
            _textField.appendText(" stage.frameRate: " + stage.frameRate + "\n");
        }
        
        private function onEnterFrame(e:Event):void{
            _textField.appendText("[In EnterFrame]");
            _textField.appendText(" stage.stageHeight: " + stage.stageWidth);
            _textField.appendText(" stage.stageHeight: " + stage.stageHeight);
            _textField.appendText(" stage.frameRate: " + stage.frameRate + "\n");
        }
    }
}