Ceoi 2012 Circuit Data Viewer
♥0 |
Line 18 |
Modified 2013-03-14 23:42:27 |
MIT License
archived:2017-03-20 06:48:18
ActionScript3 source code
/**
* Copyright Qwaz ( http://wonderfl.net/user/Qwaz )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/l4ot
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var data:String = "2 7 12 10 12 16 7 19 9 15 7 13 10 12 10 16 11 11 3 10 3 20 6 16 5 14 4 17 4 11 8 16 4 21 11 26 8 37 7 26 4 30 5 37 6 30 8 46 18 34 14 26 11 36 15 33 9 42 13 24 21 24 25 34 25 51 5 55 2 41 9 50 5 49 7 54 17 50 12 48 22 41 18 48 23 48 24 36 20 28 19 37 21 33 23 37 11 45 11 49 8 47 1 37 1 56 28 56 20 54 30 51 28 38 28 49 26 34 31 32 22 15 26 26 19 19 12 20 12 25 6 21 18 15 14 7 16 14 13 14 13 7 15 5 21 19 21 11 27 19 26 8 23 9 26 15 20 8 20 12 17 5 23 7 28 7 28 23 38 7 36 24 34 19 30 25 34 35 29 36 33 54 37 38 43 38 37 32 35 40 35 28 32 25 39 26 39 32 45 35 39 22 48 31 37 53 52 55 43 50 54 41 47 41 54 33 49 17 51 32 41 18 47 21 40 13 50 13 54 21 51 9 54 8 49 6 53 5 12 1";
var array:Array = data.split(' ');
var i:int, G:Number=8;
this.graphics.beginFill(0xFFAAAA);
this.graphics.lineStyle(1, 0);
trace(Number(array[0]), Number(array[1]));
this.graphics.moveTo(Number(array[0])*G, Number(array[1])*G);
for(i=1; i<array.length/2; i++){
this.graphics.lineTo(Number(array[i*2])*G, Number(array[i*2+1])*G);
}
this.graphics.lineTo(Number(array[0])*G, Number(array[1])*G);
}
}
}