# Game in ActionScript

**URL:** <https://forum.kirupa.com/t/game-in-actionscript/181721>\
**Category:** flash\
**Created:** [March 12, 2006, 10:20am UTC](https://forum.kirupa.com/t/game-in-actionscript/181721 "2006-03-12T10:20:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasanth\_arasu](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@prasanth\_arasu](https://forum.kirupa.com/u/prasanth_arasu)\
**Post date:** [March 12, 2006, 10:20am UTC](https://forum.kirupa.com/t/game-in-actionscript/181721/1 "2006-03-12T10:20:25Z")

</div>

I am attaching a simple action script  
my question is when i press a button the ball goes up and after a certain distance it come back  
i hav used hittest but i need to know how to control the ball

for example when the ball is mooving up and hittest occurs i want the ball to come down to its initial position from where it started

but if hittest occurs when the ball is comming down i want hittest to occur

but i am finding it difficult pls help me out

regards  
prasanth

waiting for ur valuable reply at the earliest
