# Creating Continuous Movement

**URL:** <https://forum.kirupa.com/t/creating-continuous-movement/5874>\
**Category:** flash\
**Created:** [September 24, 2002, 6:47pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874 "2002-09-24T18:47:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsavo](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@tsavo](https://forum.kirupa.com/u/tsavo)\
**Post date:** [September 24, 2002, 6:47pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/1 "2002-09-24T18:47:07Z")

</div>

I have read the toturial under special FX for flash MX, about Creating Continuous Movement. It worked out fine, but how can I make the same effect in a movieClip? When I try, the scaling of the objeckts is going crazy and they can move backwards!! If anyone has any suggestions, plz let me know!!

---

<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 24, 2002, 6:48pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/2 "2002-09-24T18:48:52Z")

</div>

umm…yeah, a little help, please. I had the same problem.

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 24, 2002, 6:55pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/3 "2002-09-24T18:55:14Z")

</div>

It should work the same.

It goes backwards and scales largely if you view it from inside Flash. This is because the screen are is larger than your actual movie, but if you think about it in terms where the viewer will only be able to move the mouse at, it should work.

If you changed the size of the movie you may have to change some of the numbers to fit what you want because with the way it is set up now, it was pretty much meant for that size.

If this isn’t the problem, can someone post a .zip file with the .fla in it so I can scope it out.

---

<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 24, 2002, 7:01pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/4 "2002-09-24T19:01:02Z")

</div>

the problem is that I want to make the effect in a movieClip, that is smaller than the stage. Somehow the the clip must be told that its only when the courser is over a certain area, that is should take effect. Don’t know if thats do-able!:-\

---

<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 24, 2002, 7:07pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/5 "2002-09-24T19:07:18Z")

</div>

You mean like if the mouse cursor is over a button you want the animation to be triggered?

If so, I have never seen it done, but that doesn’t mean it can’t be. If I get time I will try and figure it out. Let me know if that’s what you mean.

---

<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 24, 2002, 8:17pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/6 "2002-09-24T20:17:44Z")

</div>

it would be okay, if it could interact when the courser is over the movieClip itself!🙂

---

<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 24, 2002, 9:00pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/7 "2002-09-24T21:00:03Z")

</div>

Well with MX that is completely possible too. Probably in Flash 5 with hitTest, but it is possible in MX with dyanmic event handlers.

Anyways, when I try it, I will use a movie clip instead of a button.

---

<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 25, 2002, 5:32pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/8 "2002-09-25T17:32:32Z")

</div>

Ok, I didn’t have much time to work on it, but I did get something going. I attached a .zip file with what I think you wanted.

The “movieButton” layer contains the movie clip which acts as a button, it also contains the actions that makes the movie clip a button and tells it what to do.

The “Actions” layer just contains stop(); actions on each frame.

And well of course the other layer contains the orbs.

I hope this helps with what you are trying to do:)

---

<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 25, 2002, 5:46pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/9 "2002-09-25T17:46:46Z")

</div>

thx! I’ll have a look at it!

---

<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 25, 2002, 5:48pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/10 "2002-09-25T17:48:01Z")

</div>

Let me know how it goes:)

---

<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 26, 2002, 8:27am UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/11 "2002-09-26T08:27:36Z")

</div>

Yup! that works just fine! But could it be a little more advanced? Now, the movie only plays when the courser is over the “hit area”. Could it be done in a way, so that the movie keeps on playing, but only when the courser is over the hit area the speed and scaling of the objects should be possible.  
anyway, thx for all your help!  
could u write some short explanaitions between the lines in the code, to tell me what they do? only if its not too much trouble! 🙂

---

<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 26, 2002, 4:26pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/12 "2002-09-26T16:26:56Z")

</div>

I will see what I can do, but I don’t have much time on my hands today and I am leaving for the weekend. If I don’t get it to you on time hopefully someone else will:)

---

<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 26, 2002, 4:36pm UTC](https://forum.kirupa.com/t/creating-continuous-movement/5874/13 "2002-09-26T16:36:18Z")

</div>

thats fine! no rush! have bigger problems with that other thing I posted!!🙂
