flash on 2010-2-9
♥0 |
Line 16 |
Modified 2010-02-09 01:09:39 |
MIT License
archived:2017-03-20 10:17:37
ActionScript3 source code
/**
* Copyright hacker_u_yjm2r7 ( http://wonderfl.net/user/hacker_u_yjm2r7 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/1Bn9
*/
package {
import flash.display.*;
import flash.text.*;
public class Lesson2 extends Sprite {
public function Lesson2 () {
var sum:int;
var list:Array = [5,4,3,10,8,6,7,11,14,23];
for (var i:int = 0; i < 10; i++) {
sum += list[i];
}
var textField:TextField = new TextField();
textField.text = String(sum);
addChild(textField);
}
}
}