notice: Flash editor updated! Join the development! Thanks to MiniBuilder


embed

FORKED
  1. // forked from kamipoo's code on 2008-12-18
  2. // write as3 code here..
  3. package {
  4.     import flash.display.*;
  5.     import flash.text.*;
  6.     import flash.events.*;
  7.     
  8.     [SWF(width="465", height="465", backgroundColor="0xFFFFFF", frameRate="60")]
  9.     public class HelloWonderfl extends Sprite {
  10.         
  11.         private var _txt:TextField;
  12.         public function HelloWonderfl() {
  13.             super();
  14.             _txt = new TextField();
  15.             _txt.text = "Hello Wonderfl";
  16.             this.addChild(_txt);
  17.             _txt.autoSize = "left";
  18.             _txt.x = (stage.stageWidth - _txt.width) >> 1;
  19.             _txt.y = (stage.stageHeight - _txt.height) >> 1;
  20.             _txt.scaleX = _txt.scaleY = 2;
  21.             this.addEventListener(Event.ENTER_FRAME, enterframeHandler);
  22.         }
  23.         public function init():void {
  24.         }
  25.         private function enterframeHandler(e:Event):void {
  26.             _txt.rotationY += 18;
  27. //            _txt.rotationX += 1;
  28.  //           _txt.rotationZ += 1;
  29.          //    _txt.z -= 1;
  30.         }
  31.     }
  32. }
noswf
  1. // forked from kamipoo's code on 2008-12-18
  2. // write as3 code here..
  3. package {
  4.     import flash.display.*;
  5.     import flash.text.*;
  6.     import flash.events.*;
  7.     
  8.     [SWF(width="465", height="465", backgroundColor="0x00FFFF", frameRate="60")]
  9.     public class HelloWonderfl extends Sprite {
  10.         
  11.         private var _txt:TextField;
  12.         public function HelloWonderfl() {
  13.             super();
  14.             _txt = new TextField();
  15.             _txt.text = "Hello Wonderfl";
  16.             this.addChild(_txt);
  17.             _txt.autoSize = "left";
  18.             _txt.x = stage.stageWidth/2;
  19.             _txt.y = stage.stageHeight/2;
  20.             _txt.scaleX = _txt.scaleY = 2;
  21.             this.addEventListener(Event.ENTER_FRAME, enterframeHandler);
  22.         }
  23.         public function init():void {
  24.         }
  25.         private function enterframeHandler(e:Event):void {
  26.             _txt.rotationY += 1;
  27.             _txt.rotationX += 1;
  28.             _txt.rotationZ += 1;
  29.         }
  30.     }
  31. }
noswf
Get Adobe Flash Player