flash on 2010-6-12

by uwi
♥0 | Line 28 | Modified 2010-06-12 02:37:37 | MIT License
play

ActionScript3 source code

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

package {
	import flash.display.Sprite;
	import flash.text.TextField;

	public class Test extends Sprite {
		private var _tf : TextField;
		private var Q : Vector.<Vector.<Vector.<Number>>>;

		public function Test() {
			_tf = new TextField();
			_tf.width = 465;
			_tf.height = 465;
			addChild(_tf);

			Q = new Vector.<Vector.<Vector.<Number>>>(10);
			for(var i : uint = 0;i < 10;i++){
				Q[i] = new Vector.<Vector.<Number>>(10);
				for(var j : uint = 0;j < 10;j++){
					Q[i][j] = new Vector.<Number>(4);
					for(var k : uint = 0;k < 4;k++){
						Q[i][j][k] = 0;
					}
				}
			}
		}

		private function tr(...o : Array) : void
		{
			_tf.appendText(o + "\n");
		}
	}
}