I want to make something in flash like thus:

I have a picture and I want it so that when I put my mouse over it, it plays an animation until finished and then when I take my mouse off it stops.

Is there any source code or tutorials.

(I'm using flash professional 8.0)

Don't know how well it would work, but I would make a movie symbol of whatever animation you want to happen. Make a button symbol, then set the image as an upstate on the button and for the over state put in the movice clip symbol. Just be sure to put a stop action at the end of the movie clip. That should automatically make it play the animation over the image yet nothing onmouseout.