# HELP! Animating using actionscript

**URL:** https://forum.kirupa.com/t/help-animating-using-actionscript/234021
**Category:** flash
**Created:** [July 29, 2007, 5:53pm UTC](https://forum.kirupa.com/t/help-animating-using-actionscript/234021 "2007-07-29T17:53:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gstyle333](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gstyle333](https://forum.kirupa.com/u/gstyle333)
#### Post date: [July 29, 2007, 5:53pm UTC](https://forum.kirupa.com/t/help-animating-using-actionscript/234021/1 "2007-07-29T17:53:34Z")

</div>

Hi All,

I’m having a bit of trouble with some actionscript.

I have a movie with an instance name of myBook. myBook has these actions on it.

onClipEvent(load){  
\_root.myBook.\_x = 152;  
\_root.myBook.\_y = 323;  
\_root.targXscale=100;  
\_root.targYscale=100;  
}

I have a button that tells the movie clip (myBook) to move a certain distance to the right. This in the action on the button.

on (rollOver) {  
\_root.myBook.\_x = 870;  
\_root.myBook.\_y = 323;  
gotoAndStop(10);

}

So far so good…but this is when I get stuck.

You see, the button makes the movie clip (myBook) jump to its new position. I want it to motion tween (animate) to its new position…NOT…jump suddenly to it.

I would appreciate some help please.
