# Mouse controlled movement using Actionscript

**URL:** <https://forum.kirupa.com/t/mouse-controlled-movement-using-actionscript/47991>\
**Category:** flash\
**Created:** [April 8, 2004, 9:47pm UTC](https://forum.kirupa.com/t/mouse-controlled-movement-using-actionscript/47991 "2004-04-08T21:47:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WAVEshift](https://avatars.discourse-cdn.com/v4/letter/w/5f8ce5/32.png) [@WAVEshift](https://forum.kirupa.com/u/WAVEshift)\
**Post date:** [April 8, 2004, 9:47pm UTC](https://forum.kirupa.com/t/mouse-controlled-movement-using-actionscript/47991/1 "2004-04-08T21:47:05Z")

</div>

Hey,

I’ve imported a Swift3D file into flash as a movie clip. The movie clip includes 19 frames which move the object around. I’m trying to get it to move only when a user clicks down on the mouse instead constantly moving. So if the user moves to the right, the movie clip image moves to the right, and vice-a-versa. I"m not really sure how to start on this. I want the object to open and not move- only move when the user clicks and moves the mouse.

Any help would be awesome!

Thanks :ne:
