Help.....tetris!

help me please
i m new in flash and actionscript
i want to make a tetris game but i can t stop the pieces when they hit down.
should i make a reference point for every cube???
just help me