# Stressed Out! Need Help!

**URL:** <https://forum.kirupa.com/t/stressed-out-need-help/5518>\
**Category:** flash\
**Created:** [September 13, 2002, 5:57pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518 "2002-09-13T17:57:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelly\_Nunes](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Kelly\_Nunes](https://forum.kirupa.com/u/Kelly_Nunes)\
**Post date:** [September 13, 2002, 5:57pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/1 "2002-09-13T17:57:23Z")

</div>

I am trying to use the “Continuous Movement” tutorial on this web site. Actually, I am trying to adjust it to keep it from scaling and speeding up the movment of my objects. I merely want my objects to move across the screen at the same pace. Can someone help me with this? Please…

---

<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:** [September 13, 2002, 6:35pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/2 "2002-09-13T18:35:00Z")

</div>

Hi Kelly.

onClipEvent(enterframe){  
this.\_x++;  
}

will make an object move constantly to the right.

I need to know more about what you’re trying to accomplish to help more. Also, Kelly (no offense at all), it would help us out if you use more descriptive subjects instead of using “Im stressed out”. I would suggest something like “problems with continuous movement” or something like that. 🙂 Thanks!

Let us know if we can help further.

---

<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:** [September 13, 2002, 6:54pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/3 "2002-09-13T18:54:46Z")

</div>

Change your code to look like this…

```auto
onClipEvent (enterFrame) {
	//generating movement
	location = this._x;
	var i;
	i = 10
	if (this, hitTest(_root.block)) {
		this._x = -1000;
	} else {
		this._x = location+i++;
	}
}

```

Change the value i=10 to a higher number to make it go faster and a lower number to slow it down.

Good Luck:)

---

<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:** [September 14, 2002, 2:28pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/4 "2002-09-14T14:28:54Z")

</div>

Hey lost… if you’re gonna give them that, you may as well explain the \_root.block part of your code. I was giving her(?) a gentle nudge, since I don’t know exactly what she’s trying to achieve.

🙂

---

<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:** [September 14, 2002, 4:12pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/5 "2002-09-14T16:12:31Z")

</div>

Hey Montoya, it sounds to me that she wants to achieve the continuous movement effect that kirupa uses by following the Continuous Movement tutorial. The problem is, in the tutorial, if you move your mouse up and down the shapes will scale up and down, and if you move your mouse left and right it speeds up and slows down. What I believe Kelly wanted was for a set speed without resizing.

The original code supplied by Kirupa is…

```auto
onClipEvent (enterFrame) {
	//generating movement
	location = this._x;
	var i;
	i = 1+_root._xmouse/5;
	if (this, hitTest(_root.block)) {
		this._x = -1000;
	} else {
		this._x = location+i++;
	}
	//clips are scaled according to y-mouse;
	this._xscale = 40+_root._ymouse;
	this._yscale = 40+_root._ymouse;
}

```

And what I said was to just change that code to look like this…

```auto
onClipEvent (enterFrame) {
	//generating movement
	location = this._x;
	var i;
	i = 10
	if (this, hitTest(_root.block)) {
		this._x = -1000;
	} else {
		this._x = location+i++;
	}
}

```

What this does is remove the parts that scale the clip and change the speed. Then the variable “i” is actually the speed. So in my example the speed is set to 10. As for the \_root.block, that is just what kirupa used, so I figured if Kelly followed the same tutorial, she probably use the same instance name.

---

<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:** [September 14, 2002, 7:50pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/6 "2002-09-14T19:50:16Z")

</div>

Hey there guys,

I just wanted to thank you for your help with this problem. I to manipulate the script from Kirupa, but for some reason no matter what I did it still would not work. I have not tried the script you provided yet, but I will later today. Once again thank you for helping me out.

P.S. I’m a guy…LOL!

---

<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:** [September 14, 2002, 7:54pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/7 "2002-09-14T19:54:41Z")

</div>

No problem Kelly.

Sorry for thinking you were a girl, but we only had the name Kelly Nunes to go by, no other clues as to your gender. My apologies.

---

<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:** [September 14, 2002, 8:05pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/8 "2002-09-14T20:05:25Z")

</div>

No worries, I actually think it’s funny. Everyone does that. I actually as assigned to the female dorms when I was is school and basic training in the Air Force because of my name. It was great until the girls found out about me…LOL!

---

<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:** [September 14, 2002, 8:09pm UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/9 "2002-09-14T20:09:06Z")

</div>

Haha, that is quite humurous.

I remember my freshmen year in high school, our school was getting a new principal, his first name is Kelly and everyone thought he was going to be a she, then he showed up and we were all confused…haha.

---

<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:** [September 17, 2002, 7:27am UTC](https://forum.kirupa.com/t/stressed-out-need-help/5518/10 "2002-09-17T07:27:07Z")

</div>

I never read post with titles like this one, some others do, some don’t, it’s just too long to look through all those “i need help”, “urgent help”, “i give up”, “newbie needs actionscript hero” , or whatever else is meant to grab attention, it just doesn’t, state what you want/ what the problem is in the title, so everybody knows if it’s interesting, if they might know the answer, if they’d like the answer too etc…

And now I’m going to post that in all the other one’s with similar titles…beerdrinkers and hellraisers…(ZZ Top)…
