TOP > ACTIONSCRIPT3,FLASH SEARCH RESULT FOR Tweensy
sort : match | new | page view
- }
- function printer(result:*):Function {
- return function():void { print(result); };
- }
- addChild(tf);
- /*
- Tweensyでトゥイーン実行中に上書きをどんどん行った際、
- onCompleteの呼び出しは中止されるのか、されないのか????
- */
- var obj:Object = new Sprite();
- print("begin 1");
- Tweensy.to(obj, {x:1}, 3).onComplete = printer("end 1");
- doLater(function():void {
- print("begin 2");
- Tweensy.to(obj, {x:2}, 3).onComplete = printer("end 2");
- // forked from mash's tweensy test
- package {
- import flash.display.*;
- import com.flashdynamix.motion.Tweensy;
- public class FlashTest extends Sprite {
- public function FlashTest() {
- var sp :Sprite = new Sprite;
- addChild( sp );
- var g :Graphics = sp.graphics;
- g.beginFill(0xFF0000);
- g.drawRect(0,0,10,10);
- Tweensy.to(sp, {x:100});
- }
- }
- }
- package {
- import flash.display.*;
- import com.flashdynamix.motion.Tweensy;
- import com.flashdynamix.motion.*;
- import fl.motion.easing.*;
- public class FlashTest extends Sprite {
- public function FlashTest() {
- // write as3 code here..
- var sp:Sprite=new Sprite;
- addChild(sp);
- var g:Graphics=sp.graphics;
- g.lineStyle(5,0x00aa00);
- g.drawCircle(200,200,30);
- Tweensy.to(sp,{x:100,y:120},1.5,Bounce.easeOut,0.5);
- }
- }
- }
- */
- package
- {
- import flash.display.*;
- import flash.events.*;
- import com.flashdynamix.motion.*;
- [SWF(width="500", height="500", backgroundColor="#000000", frameRate="30")]
- public class TweensyTest extends Sprite
- {
- private var _sp:Sprite;
- public function TweensyTest()
- {
- addEventListener(Event.ADDED_TO_STAGE, init);
- }
- private function init(e:Event):void
- // forked from ll_koba_ll's TweensyTest LOOP
- /*
- * repeats = 4 ってしても4回ループしてない?
- * どうやらrepeatsは追加で動く回数みたい
- */
- //[SWF(width="500", height="500"~じゃなくて、
- //[SWF(width="465", height="465"~の方が正しい気がする。
- package
- {
- import flash.display.*;
- import flash.events.*;
- import com.flashdynamix.motion.*;
- [SWF(width="465", height="465", backgroundColor="#000000", frameRate="30")]
- public class TweensyTest extends Sprite
- {
- /*
- * Tweensyで出来るだけ簡単に位置をぶるぶる振動させる実験
- * 上は失敗作、下はそれっぽいの
- */
- package
- {
- import flash.display.*;
- import com.flashdynamix.motion.*;
- [SWF(width="465", height="465", backgroundColor="#000000", frameRate="30")]
- public class ShakeTweensy extends Sprite
- {
- public function ShakeTweensy()
- {
- // 玉を配置
- var ball01:Sprite = new Sprite();
- var ball02:Sprite = new Sprite();
- setBall( ball01, this.stage.stageWidth/2, 120 );
- setBall( ball02, this.stage.stageWidth/2, 240 );
- // forked from pecoco's Tweensyでぶるぶる震える
- /*
- * Tweensyで出来るだけ簡単に位置をぶるぶる振動させる実験
- * 上は失敗作、下はそれっぽいの
- */
- package
- {
- import flash.display.*;
- import flash.events.MouseEvent;
- import com.flashdynamix.motion.*;
- import com.flashdynamix.motion.Tweensy;
- [SWF(width="465", height="465", backgroundColor="#000000", frameRate="30")]
- public class ShakeTweensy extends Sprite
- {
- public function ShakeTweensy()
- {
- // 玉を配置
- var ball01:Sprite = new Sprite();
- {
- var rand1:RandomText=new RandomText("Wonderfl build flash online.");
- addChild(rand1);
- rand1.x = 20;
- rand1.y = 20;
- var rand2:RandomText=new RandomText("ActionScript3.0 and Papervision3D and Tweener.");
- addChild(rand2);
- rand2.x = 20;
- rand2.y = 40;
- var rand3:RandomText=new RandomText("Progression and Box2DFlashAS3 and Tweensy.");
- addChild(rand3);
- rand3.x = 20;
- rand3.y = 60;
- var rand4:RandomText=new RandomText("Flex and Mete and yui.");
- addChild(rand4);
- rand4.x = 20;
- rand4.y = 80;
- var rand5:RandomText=new RandomText("日本語はあんまりきれいじゃないですやっぱり");
- addChild(rand5);
- var rand1:RandomText=new RandomText("Wonderfl build flash online.");
- addChild(rand1);
- rand1.x = 20;
- rand1.y = 24 * i++;
- var rand2:RandomText=new RandomText("ActionScript3.0 and Papervision3D and Tweener.");
- addChild(rand2);
- rand2.x = 20;
- rand2.y = 24 * i++;
- var rand3:RandomText=new RandomText("Progression and Box2DFlashAS3 and Tweensy.");
- addChild(rand3);
- rand3.x = 20;
- rand3.y = 24 * i++;
- var rand4:RandomText=new RandomText("Flex and Mete and yui.");
- addChild(rand4);
- rand4.x = 20;
- rand4.y = 24 * i++;


