You can code an avatar so that certain actions are only available during certain states. Click here to learn more.
You can use a Flash SWF file as a backdrop to create special effects for a room. Click here to learn more.