flash on 2011-4-22

by e_2o
♥0 | Line 15 | Modified 2011-04-22 16:40:20 | MIT License
play

ActionScript3 source code

/**
 * Copyright e_2o ( http://wonderfl.net/user/e_2o )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/vB92
 */

package {
import flash.display.*;
import flash.text.*;

public class Lesson3_3 extends Sprite {
    public function Lesson3_3 () {
        var textField:TextField = new TextField();
        var a:int = 1 ;
        while ( a <= 5){                          
            textField.appendText( String(a) );
            a++;                                  
        }
        addChild(textField);
    }
}
}