|
Revision 35663, 0.6 kB
(checked in by hoge1e3, 4 years ago)
|
|
初期インポート。
|
| Line | |
|---|
| 1 | |
|---|
| 2 | class Boot { |
|---|
| 3 | public static var chars:Array<Test>; |
|---|
| 4 | static function main() { |
|---|
| 5 | //var tf= new Test(); |
|---|
| 6 | chars = []; |
|---|
| 7 | // var sh= new Shape(); |
|---|
| 8 | // flash.Lib.current.addChild(tf); |
|---|
| 9 | // sh.addChild(tf); |
|---|
| 10 | var i:Int; |
|---|
| 11 | for (i in 0 ... 99) { |
|---|
| 12 | var tf=new Test (); |
|---|
| 13 | tf.x=Std.random(200); |
|---|
| 14 | tf.y=Std.random(200); |
|---|
| 15 | tf.text="大"; |
|---|
| 16 | flash.Lib.current.addChild(tf); |
|---|
| 17 | chars.push(tf); |
|---|
| 18 | } |
|---|
| 19 | //flash.Lib.current.addChild(tf); |
|---|
| 20 | flash.Lib.current.addEventListener("enterFrame", function (ev) { |
|---|
| 21 | var tf:Test; |
|---|
| 22 | for (tf in chars) { |
|---|
| 23 | tf.move(); |
|---|
| 24 | } |
|---|
| 25 | }); |
|---|
| 26 | } |
|---|
| 27 | } |
|---|