flash on 2012-11-27
♥0 |
Line 30 |
Modified 2012-11-28 01:49:47 |
MIT License
archived:2017-03-20 07:36:17
ActionScript3 source code
/**
* Copyright hucota7 ( http://wonderfl.net/user/hucota7 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/r2jn
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
for (var i:int=0;i<8;i++)
{
for (var j:int=0;j<8;j++)
{
var square:Sprite = new Sprite();
with (square.graphics)
{
beginFill(0x808080);
moveTo(-15,-15);
lineTo(-15,15);
lineTo(15,15);
lineTo(15,-15);
endFill();
lineStyle(1,0x0,.8)
moveTo(-15,15);
lineTo(15,15);
lineTo(15,-15);
}
square.x=30+i*32;
square.y=30+j*32;
addChild(square);
}
}
}
}
}