flash on 2016-12-3
♥0 |
Line 20 |
Modified 2016-12-03 11:48:53 |
MIT License
archived:2017-03-20 12:59:57
ActionScript3 source code
/**
* Copyright komatsu ( http://wonderfl.net/user/komatsu )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/yKQD
*/
package {
import flash.text.TextFormat;
import flash.text.TextField;
import flash.display.Sprite;
import a24.tween.Tween24;
import a24.tween.Ease24;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var txt:TextField = new TextField();
txt.text = "Flash CC 2015";
txt.width = 200;
var fmt:TextFormat = new TextFormat();
fmt.size = 24;
fmt.color = 0xff0000;
txt.setTextFormat(fmt);
addChild(txt);
Tween24.tween( txt , 2 , Ease24._2_QuadInOut ).delay( 3 ).x( 200 ).y( 200 ).play();
}
}
}