flash on 2009-10-14
♥0 |
Line 23 |
Modified 2009-10-14 06:56:06 |
MIT License
archived:2017-03-20 08:52:56
ActionScript3 source code
/**
* Copyright sinclairc5 ( http://wonderfl.net/user/sinclairc5 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/nIJA
*/
package
{
import flash.display.Sprite;
public class FlashTest extends Sprite
{
public function FlashTest()
{
addChild( new Game() );
}
}
}
/********************************************/
import flash.display.Sprite;
import flash.display.Graphics;
class Game extends Sprite
{
public function Game()
{
graphics.beginFill(0x999111, 1);
graphics.lineStyle(1, 0x666666, 1);
graphics.drawRect(0, 0, 10, 10);
graphics.endFill();
}
}