flash on 2010-2-9
/**
* Copyright stolpnik ( http://wonderfl.net/user/stolpnik )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/7w1g
*/
package {
import flash.display.Sprite;
import flash.display.Graphics;
import com.flashdynamix.motion.Tweensy;
import com.flashdynamix.motion.TweensySequence;
import com.flashdynamix.motion.TweensyGroup;
import com.flashdynamix.motion.TweensyTimeline;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var mo:Sprite = new Sprite();
var g:Graphics = mo.graphics;
g.lineStyle(1, 0xCCCCCC);
g.moveTo(0,0);
g.lineTo(50,0);
g.lineTo(50,50);
g.lineTo(0,50);
g.lineTo(0,0);
var mo2:Sprite = new Sprite();
var g2:Graphics = mo2.graphics;
g2.lineStyle(1, 0xCCFF00);
g2.moveTo(0,0);
g2.lineTo(50,0);
g2.lineTo(50,50);
g2.lineTo(0,50);
g2.lineTo(0,0);
addChild(mo);
addChild(mo2);
mo.alpha = 0;
mo.visible = false;
var t:TweensyGroup = new TweensyGroup();
t.to(mo, {alpha:1,visible:true}, 3);
t.slideTo(mo, 150, 248, 3);
t.rotateTo(mo, 135, 10);
t.to(mo2, { x:250, y:250 }, 3);
}
}
}