# Another easy Q

**URL:** https://forum.kirupa.com/t/another-easy-q/271210
**Category:** Uncategorized
**Created:** [September 19, 2008, 6:53pm UTC](https://forum.kirupa.com/t/another-easy-q/271210 "2008-09-19T18:53:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kikicecca](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@kikicecca](https://forum.kirupa.com/u/kikicecca)
#### Post date: [September 19, 2008, 6:53pm UTC](https://forum.kirupa.com/t/another-easy-q/271210/1 "2008-09-19T18:53:25Z")

</div>

right now, if i click the redBall, it goes right to the second function. is there a way to basically make it go to the x,y coordinates in moveBall THEN from there get clicked and go to the x,y coordinates in hitBall?

function moveBall (Event:MouseEvent):void{  
redBall\_mc.x = 72;  
redBall\_mc.y = 119  
}  
redBall\_mc.addEventListener(MouseEvent.CLICK, moveBall);

function hitBall (Event:MouseEvent):void{  
redBall\_mc.x = 480;  
redBall\_mc.y = 130  
}  
redBall\_mc.addEventListener(MouseEvent.CLICK, moveBall);
