Actionscript 3 tetris source code
13th December 2007
This will certainly be useful to anyone wanting to make a tetris game. It’s probably also useful to anyone learning Actionscript 3, particularly if they want to make games. The source code is on my free code repository. It’s in two parts – an engine, which does the game part, and a sample game that uses the engine. Have fun.
Tags: Actionscript, Free code, Game development, Tetris

6 Comments add your own
Thanks for sharing – it is much appreciated; your Singleton article is great as well.
Dave Jeffery | 18th December 2007 at 18:12
Awesome! I really appreciate you giving away your knowledge. I hope to be using Flint here really soon, too!
I’m trying to get the tetris code to work in FlashDevelop, but keep getting error 1009:
“Cannot access a property or method of a null object reference.” on the line starting with,
StartScreen( screen )
I can’t figure out the problem!
ryan | 23rd July 2008 at 08:08
why cant i get the code?
it says that it is forbiden for me
mehdi | 4th December 2008 at 09:51
Thanks a million for this.. I studied a lot of AS3 in hopes to program a game.. and there were some concepts I couldn’t get my head around without seeing some complete game code. Particularly the relation of Classes to game screen MovieClips.
Zionviller | 11th July 2009 at 12:26
Hi, I downloaded the source code. Works great. Made the blocks look better and added ingame bg music.
Im after a code to let my members submit their high scores. Maybe you can e-mail me the code for high score submittion?
#Thanks
PaulAmy | 10th November 2009 at 19:16
Your source code was really helpful in helping me get the hand of extended classes. Thanks so much for posting!
bworth | 16th January 2010 at 03:40
Leave a Comment comment policy
XHTML: you can use these tags - <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>Subscribe to the comments via RSS Feed