# Some editing in the motion tute?

**URL:** <https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646>\
**Category:** flash\
**Created:** [February 11, 2004, 2:20pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646 "2004-02-11T14:20:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![peace](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@peace](https://forum.kirupa.com/u/peace)\
**Post date:** [February 11, 2004, 2:20pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/1 "2004-02-11T14:20:55Z")

</div>

I read the tute on continuous motion but i want continuous motion of a jpeg with no mouse action to effect it ,unlike the tute, just smooth continuous motion ,how can i do that?I also read the tute on Cont. motion with clouding technique , don’t want that too.  
THankyou.

---

<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 12, 2004, 3:52am UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/2 "2004-02-12T03:52:41Z")

</div>

Can no one help?

---

<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 12, 2004, 5:42am UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/3 "2004-02-12T05:42:03Z")

</div>

Change this line:

```auto
i = 1+_root._xmouse/5;

```

for

```auto
	i = 5;//or any other value

```

---

<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 12, 2004, 11:41am UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/4 "2004-02-12T11:41:53Z")

</div>

I gave actionscript(u wrote) to the keyframe but the jpeg didn’t move at all, then i gave actionscript to jpeg ,nothing happened… Can u elaborate your post?  
Thankyou.

---

<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 12, 2004, 11:56am UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/5 "2004-02-12T11:56:06Z")

</div>

First: what tutorial are you refering to?

---

<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 12, 2004, 12:04pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/6 "2004-02-12T12:04:04Z")

</div>

Continuous motion tute.

---

<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 12, 2004, 12:10pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/7 "2004-02-12T12:10:26Z")

</div>

> \*Originally posted by peace \*  
> \*\*I gave actionscript(u wrote) to the keyframe but the jpeg didn’t move at all, then i gave actionscript to jpeg ,nothing happened… Can u elaborate your post?  
> Thankyou. \*\*  
> Im assuming yoiu are refering to this tutorial [kirupa.com - Creating Continuous Movement](http://www.kirupa.com/developer/mx/continuousmovement.htm)  
> If so, there’s no code applied on the frame, so why did you paste the code i gave you on the frame?

The code should be:

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

```

---

<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 12, 2004, 12:16pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/8 "2004-02-12T12:16:07Z")

</div>

I thought the code u gave had to b given either in the kframe or jpeg, i wasn’t followin the instructions of the tute’s link u posted. Yes i was reffering to this tute but in this tute the motion is affected by the cursor ,i don’t want that i just want the image to keep moving on its own.

---

<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 12, 2004, 12:21pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/9 "2004-02-12T12:21:48Z")

</div>

If you follow the tutorial using my code, the mouse wont affect the movement.

---

<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 12, 2004, 12:28pm UTC](https://forum.kirupa.com/t/some-editing-in-the-motion-tute/42646/10 "2004-02-12T12:28:01Z")

</div>

Ok the image is movin but i’ve another prob. now it disappears. i want it to move inside the mask. i’ve uploaded the file pls. check n also let me know what if i want to change mask’s size?
