forked from: flash on 2011-10-24
♥0 |
Line 25 |
Modified 2011-10-29 10:38:51 |
MIT License
archived:2017-03-20 11:51:30
ActionScript3 source code
/**
* Copyright FTMSuperfly ( http://wonderfl.net/user/FTMSuperfly )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/80iZ
*/
// forked from Yasichi's flash on 2011-10-24
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 );
}
}
}
}