sample 1 forked from: sample 1
- package{
- import flash.text.TextFormat;
- import flash.text.TextField;
- import flash.text.TextFieldType;
- import flash.display.Sprite;
- import flash.text.TextFieldAutoSize;
- public class square extends Sprite{
- public function square(){
- var fld:TextField = new TextField();
- fld.type = TextFieldType.INPUT;
- var tf:TextFormat = new TextFormat;
- tf.font = "_typewriter";
- tf.size =18;
- fld.defaultTextFormat = tf;
- fld.x =30;
- fld.y =50;
- fld.width =300;
- fld.height = 30;
- fld.border = true;
- fld.text = "imput here.";
- //fld.autoSize = TextFieldAutoSize.LEFT;
- addChild(fld);
- fld.selectable= false;
- }//square
- }//class
- }//package
sample 1 forked from: sample 1
- // forked from soundkitchen's sample 1
- package
- {
- import flash.display.Sprite;
- import caurina.transitions.Tweener;
- [SWF(width=465, height=465, frameRate=30, backgroundColor=0xffffff)]
- public class Sample extends Sprite
- {
- public function Sample()
- {
- // オブジェクトを作成
- var ball:Sprite = new Sprite();
- // 座標を指定
- ball.x = 100;
- ball.y = 100;
- // 丸を描画
- ball.graphics.beginFill(0x000000);
- ball.graphics.drawCircle(0, 0, 40);
- ball.graphics.endFill();
- // ステージに配置
- addChild(ball);
- // トゥイーンさせる
- Tweener.addTween(ball, {
- x: 300,
- time: 2,
- transition: "easeInOutSine"
- });
- }
- }
- }
sample 1 sample 2
- package
- {
- import flash.display.Sprite;
- import caurina.transitions.Tweener;
- [SWF(width=465, height=465, frameRate=30, backgroundColor=0xffffff)]
- public class Sample extends Sprite
- {
- public function Sample()
- {
- // オブジェクトを作成
- var ball:Sprite = new Sprite();
- // 座標を指定
- ball.x = 100;
- ball.y = 100;
- // 丸を描画
- ball.graphics.beginFill(0x000000);
- ball.graphics.drawCircle(0, 0, 40);
- ball.graphics.endFill();
- // ステージに配置
- addChild(ball);
- // トゥイーンさせる
- Tweener.addTween(ball, {
- x: 300,
- scaleX: 0,
- scaleY: 0,
- time: 2,
- transition: "easeInOutSine"
- });
- }
- }
- }
notice:




