# ActionScript motion

**URL:** https://forum.kirupa.com/t/actionscript-motion/119577
**Category:** Uncategorized
**Created:** [August 16, 2004, 3:27pm UTC](https://forum.kirupa.com/t/actionscript-motion/119577 "2004-08-16T15:27:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Napoly](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@Napoly](https://forum.kirupa.com/u/Napoly)
#### Post date: [August 16, 2004, 3:27pm UTC](https://forum.kirupa.com/t/actionscript-motion/119577/1 "2004-08-16T15:27:42Z")

</div>

First of all pls check out “Attach File”…

ok… so the question is: How can I make this kind of cube motion in ActionScript?.. If it is possible… will it be more smooth in AS or normal “shape tween”? And which one will have more KB?

thanx a lot…

---

<div class="post-metadata">

### Author: ![Dulcinea](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@Dulcinea](https://forum.kirupa.com/u/Dulcinea)
#### Post date: [August 17, 2004, 12:55am UTC](https://forum.kirupa.com/t/actionscript-motion/119577/2 "2004-08-17T00:55:53Z")

</div>

yes, it is possible  
first you have to turn your cube (the small one)  
into a movie clip.  
then you will have to write some AS on it:  
onClipEvent(load){  
largeScale = 1000;//you can change these variable values  
speed = 99;  
}  
onClipEvent(enterFrame){  
if(\_xscale \>= largeScale){  
\_yscale = \_xscale = largeScale;  
this.onEnterFrame = null;}  
\_xscale = \_yscale = \_xscale+speed;  
}
