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

flash on 2011-10-24

Get Adobe Flash player
by Yasichi 24 Oct 2011
    Embed
/**
 * Copyright Yasichi ( http://wonderfl.net/user/Yasichi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/lFg3
 */

package {
    import flash.display.Sprite;
    
    [SWF(width=465, height=465, frameRate=30, backgroundColor=0x010101)]
    
    public class DrawGrid extends Sprite
    {
        public function DrawGrid()
        {
            // write as3 code here..
            var x : int;
            var y : int;
            
            graphics.lineStyle( 1, 0x000000);
            graphics.moveTo(0,50);
            graphics.lineTo(600,50);
            for ( x = 0; x < 465; x += 50 )
            {
                graphics.moveTo( x, 0 );
                graphics.lineTo( x, 465 );
            }

            for ( y = 0; y < 465; y += 50 )
            {
                graphics.moveTo( 0, y );
                graphics.lineTo( 465, y );
            }

        }
    }
}