# Continuous movement help

**URL:** <https://forum.kirupa.com/t/continuous-movement-help/42662>\
**Category:** Uncategorized\
**Created:** [February 11, 2004, 5:24pm UTC](https://forum.kirupa.com/t/continuous-movement-help/42662 "2004-02-11T17:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xShckwVx](https://avatars.discourse-cdn.com/v4/letter/x/7ab992/32.png) [@xShckwVx](https://forum.kirupa.com/u/xShckwVx)\
**Post date:** [February 11, 2004, 5:24pm UTC](https://forum.kirupa.com/t/continuous-movement-help/42662/1 "2004-02-11T17:24:10Z")

</div>

hi, i followed this tut but i was wondering if it was possible to limit the resizing of the circles or just not able the resizing thing and just have the speed change with the X/Y mouse

thanks(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2004, 6:35pm UTC](https://forum.kirupa.com/t/continuous-movement-help/42662/2 "2004-02-11T18:35:12Z")

</div>

Take a look at my comments. Maybe this will help you.  
I am a newbie in flash, hope i’m right. :h:  
[AS]  
onClipEvent (enterFrame) {  
//generating movement  
location = this.\_x;  
var i;  
i = 1+\_root.\_xmouse/20; //CHANGE \_X movement SPEED

```
if (this, hitTest(_root.block)) {
	this._x = -1000;
} else {
	this._x = location+i++;
}
//clips are scaled according to y-mouse;
this._xscale = 100+_root._ymouse*5;
this._yscale = 100+_root._ymouse*5;

```

// 100 is the minimal value  
// Let’s say your movie height is 120px and the mouse pointer \_y=10 the maximal value will be 100+10\*5=600

}  
[/AS] 🍺

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2004, 6:41pm UTC](https://forum.kirupa.com/t/continuous-movement-help/42662/3 "2004-02-11T18:41:31Z")

</div>

thanks alot for taking the time to help me out, i’ll test it out asap  
🙂
