# Targeting image problem

**URL:** <https://forum.kirupa.com/t/targeting-image-problem/300452>\
**Category:** flash\
**Created:** [November 21, 2009, 7:30am UTC](https://forum.kirupa.com/t/targeting-image-problem/300452 "2009-11-21T07:30:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FuglyBastard](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@FuglyBastard](https://forum.kirupa.com/u/FuglyBastard)\
**Post date:** [November 21, 2009, 7:30am UTC](https://forum.kirupa.com/t/targeting-image-problem/300452/1 "2009-11-21T07:30:57Z")

</div>

Talking to a friend, He gave me a script to target an image to tell it to play the rotation of pictures inside it. It was a button that had Eye.play(); In its code(My image is named Eye).

He said it was As2.0, I use As3.0 so I dont know if As3 just doesnt like that code, Or I did something wrong…

Is this the correct way to target an image with a button and tell it to play the animation inside it with As3.0?

Thanks
