Flex ActionScript实例代码,学习编程性动画的实现方法。
代码:
package{
import flash.display.*;
import flash.text.*;
public class Main extends Sprite {
public function Main( ) {
var t:TextField = new TextField( );
t.text = "Hello";
t.autoSize = TextFieldAutoSize.LEFT;
addChild(t);
while (t.x <= 300) {
t.x += 10;
}
}
}
}