I dont know if you are looking for as2 or as3, but here is the solution from AS3 code snippets:
1)turn your picture into a MovieClip Symbol F8
2)Give your movieclip the instance name "thePicture"...