# Continuous Movement Prob

**URL:** <https://forum.kirupa.com/t/continuous-movement-prob/12639>\
**Category:** Uncategorized\
**Created:** [February 2, 2003, 11:38pm UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639 "2003-02-02T23:38:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gt102](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gt102](https://forum.kirupa.com/u/gt102)\
**Post date:** [February 2, 2003, 11:38pm UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/1 "2003-02-02T23:38:39Z")

</div>

I have created a Continuous Movement flash thing… I am new to flash so… ya

My problem is my circles are disapering and I have no F#$@^%& clue why. I have followed the tutorial [**here**](http://www.kirupa.com/developer/mx/continuousmovement.asp) exactly exept for my modifications, layers and different size.

Please tell me what went wrong my file is avalible [**here**](http://www.istop.com/~crowe/dan.fla)

---

<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 3, 2003, 12:54am UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/2 "2003-02-03T00:54:29Z")

</div>

Your dots move too fast. In one frame, they are in front of the block, and in the next they are behind it so there’s no collision. Try to check the position instead.

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

```

---

<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 3, 2003, 3:16am UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/3 "2003-02-03T03:16:37Z")

</div>

And please tone down your footer. It was ulta big and has too many topics in it.

Ironically: Your Flash footer is the same thing as the other person who was asked to tone down the footer for being too big.

---

<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 3, 2003, 6:09am UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/4 "2003-02-03T06:09:30Z")

</div>

wonder where he got the footer from? hmmm…:bad:

/unflux  
:goatee:

---

<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 3, 2003, 6:21am UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/5 "2003-02-03T06:21:06Z")

</div>

I think that footer is cool!

Click me!

WOW

So F\*\*\*ING original.

So brass…

So nivo’ se’

So sassy!

---

<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 3, 2003, 11:38am UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/6 "2003-02-03T11:38:11Z")

</div>

yup its so F\*\*\*\*\*\* origonal!!!  
\<:} - Just like this… 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:** [February 5, 2003, 5:13pm UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/7 "2003-02-05T17:13:04Z")

</div>

LET THIS POST LIVE!!!

---

<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 18, 2003, 6:52pm UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/8 "2003-02-18T18:52:53Z")

</div>

I used that code, and it worked great. Thanks! Now I’m loading my finished SWF into another movie, but is there a way to get it the speed and scaling to only respond when the mouse is over the loaded movie as opposed to the movie that containes it? I’m sure it has to have something to do w/the “\_root.” stuff.  
Thanks!!  
-Justin

---

<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 19, 2003, 6:25pm UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/9 "2003-02-19T18:25:30Z")

</div>

No one has any ideas?  
-Justin

---

<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 19, 2003, 6:37pm UTC](https://forum.kirupa.com/t/continuous-movement-prob/12639/10 "2003-02-19T18:37:46Z")

</div>

What you can try…

On your movie clip of the movie ball have this…

```php
onClipEvent (enterFrame) {
	if(_root.moveMe){
	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;
}
}

```

Then on a layer above those create a movie clip that covers the exact area of your stage. Turn this into a movie clip symbol, then click on it and drop the \_alpha to 0 in the properties panel (CTRL+F3).

After that, right click on the symbol and open the actions panel.  
Apply these actions…

```php
onClipEvent (enterFrame) { 
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
_root.moveMe = true;
} else { 
_root.moveMe = false; 
}
}

```

I didn’t test it, but its worth a try.
