In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

test5

...
@author toru
Get Adobe Flash player
by Cyario 02 Dec 2009
/**
 * Copyright Cyario ( http://wonderfl.net/user/Cyario )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/qaVZ
 */

package
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.KeyboardEvent;
	/**
	 * ...
	 * @author toru
	 */
	public class Main extends Sprite
	{
		private const X:int = 50;
		private const Y:int = 50;
		private var s:Array = new Array([], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []);
		public function Main()
		{
			for (var i:int = 0; i < Y; i++) {
				for (var j:int = 0; j < X; j++) {
					s[i][j] = new Sprite();
					s[i][j].graphics.beginFill(0xFFEEDD * (i + 1)* (j + 1));
					s[i][j].graphics.drawRect(0, 0, 10, 10);
					s[i][j].graphics.endFill();
					s[i][j].x = 0 + (j * 10);
					s[i][j].y = 0 + (i * 10);
					addChild(s[i][j]);
				}
			}
			addEventListener(Event.ENTER_FRAME, function():void { 
				for (var i:int = 0; i < Y; i++) {
					for (var j:int = 0; j < X; j++) {
						s[i][j].rotation += (i + j);
					}
				}
			});
		}
	}
}