# Motion Tween question

**URL:** <https://forum.kirupa.com/t/motion-tween-question/311393>\
**Category:** flash\
**Created:** [July 5, 2010, 2:50pm UTC](https://forum.kirupa.com/t/motion-tween-question/311393 "2010-07-05T14:50:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![echo756](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@echo756](https://forum.kirupa.com/u/echo756)\
**Post date:** [July 5, 2010, 2:50pm UTC](https://forum.kirupa.com/t/motion-tween-question/311393/1 "2010-07-05T14:50:43Z")

</div>

Hi there,

I’m just looking for some assistance with a small animation i’m trying to make using Flash CS4.  
I have two images, one is the background and is on layer 1 and remains static. The other image is on layer 2, and moves onto (above) the background image. I have a classic tween to make this happen but of course it keeps doing this animation in a loop. What I want here is to only make the animation occur when the user puts their mouse over the background image on layer 1 and then get it to move out again when the user takes the mouse away from the image.  
I know I need action script to do this, can anyone point me in the right direction please?  
Many thanks in advance.
