I believe the games you have seen that have done it were most likely programmed from scratch. Meaning that there is no way to copy and paste code to achieve that effect.
You need to read a large flash book on actionscript and fully understand how to use and manipulate it to be able to do something from scratch.
I did a little searching and could not find a tutorial on what you wanted in a short period of time. You are either going to have to up your flash skills or do extensive searching and find a tutorial/fla.