# Linear Motion with Actionscript

**URL:** <https://forum.kirupa.com/t/linear-motion-with-actionscript/205346>\
**Category:** flash\
**Created:** [October 28, 2006, 9:49am UTC](https://forum.kirupa.com/t/linear-motion-with-actionscript/205346 "2006-10-28T09:49:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smsmith](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@smsmith](https://forum.kirupa.com/u/smsmith)\
**Post date:** [October 28, 2006, 9:49am UTC](https://forum.kirupa.com/t/linear-motion-with-actionscript/205346/1 "2006-10-28T09:49:48Z")

</div>

Ok I got the \*\*[Connected Lines](http://www.kirupa.com/developer/actionscript/connectedLines.htm)\*\*tutorial figured out, I made it so that all of the dots connect to a fixed position instead of each other.

Now I’m trying to figure out how to make a movieclip(s) appear at timed intervals at the fixed position and move to the _blueCircles_ and back to the fixed position at the same speed (no easing).

While the movieclips are moving the timer for the function should be "shut off ". After all the movieclips “bounce” off the blueCircles the timer will become active again

What I’m trying to accomplish is to make a simulation for one of my classes and I want it so that if one of the blueCirlces is further away from the other ones, then the movieclip moving towards that buleCircle will take longer to return to it’s original position.

Also after looking at the tutorial [**Random Movement in Flash MX**](http://www.kirupa.com/developer/mx/random_motionMX.htm)I was able to change the “random” to a fixed position except for I could only get it to work for one movieclip, plus that movieclip had to be on the stage unlike how the blueCircle are created on the **Connected Lines** tutorial (which is what I would prefer)

Hopefully this makes sense…  
Thanks,  
[Steven]
