Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have this code in my movieClip with the instance name of MC:
- onClipEvent(mouseUp){
- mdown = setInterval(ease(), 5000);
- }
- And this is my frame coding:
- function ease(){
- if(_root._xmouse > _root.MC._x){
- _root.MC._x += 3;
- }
- if(_root._xmouse < _root.MC._x){
- _root.MC._x -= 3;
- }
- }
- I am trying to achieve that when you release the mouse, the MC goes to the x position of your mouse. Sorry if I did something stupid, but I haven't worked with something like this in a while. I know that it won't stop once it reaches your mouse, too, and I don't really care. All I want to know is how I make this work... So, thanks a ton if you can help in advance. And thanks for trying even if you can't. And if not, it's fine. :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement