# How can i do smooth box scaling and positioning animation?

**URL:** https://forum.kirupa.com/t/how-can-i-do-smooth-box-scaling-and-positioning-animation/273760
**Category:** flash
**Created:** [October 20, 2008, 2:16pm UTC](https://forum.kirupa.com/t/how-can-i-do-smooth-box-scaling-and-positioning-animation/273760 "2008-10-20T14:16:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)
#### Post date: [October 20, 2008, 2:16pm UTC](https://forum.kirupa.com/t/how-can-i-do-smooth-box-scaling-and-positioning-animation/273760/1 "2008-10-20T14:16:49Z")

</div>

Hi,  
I am new in actionscripting,

My flash document size is  
width: 995px;  
height: 800px;

On layer 1 - 1st frame I have two buttons  
1st button instance name “button1” &  
2nd button instance name"buttonTwo"

and

on 2nd layer 1st frame i have box movieClip  
instance name “box”  
width of the box is : 300px;  
height of the box is : 600px;  
By default the box is positioned in  
x-axis : 347.5  
y-axis :100.0  
of the flash document

Now once i click 1st button i want the box to move its position with an ease tween animation to  
x-axis : 40  
y-axis :100.0  
and re-size itself to  
width 600px;  
height 600px;

once i click the 2nd button i want the same box to move its position with an ease tween animation to

x-axis : 680  
y-axis :200  
and re-size itself to  
width 250px;  
height 300px;

Can you please help me with the script?
