# Please Help Me

**URL:** <https://forum.kirupa.com/t/please-help-me/20354>\
**Category:** programming\
**Created:** [May 7, 2003, 8:40pm UTC](https://forum.kirupa.com/t/please-help-me/20354 "2003-05-07T20:40:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash\_noob](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@flash\_noob](https://forum.kirupa.com/u/flash_noob)\
**Post date:** [May 7, 2003, 8:40pm UTC](https://forum.kirupa.com/t/please-help-me/20354/1 "2003-05-07T20:40:16Z")

</div>

Hey, I’m tryin to make a game in flash similar to that game where you fly a helicopter thru a tunnel. I need help with the actionscript for making the object go up when u click, or push a button. any help would be appreciated 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 9:26pm UTC](https://forum.kirupa.com/t/please-help-me/20354/2 "2003-05-07T21:26:40Z")

</div>

You need an empty movie clip placed on the stage, that contains the ActionScript for the control system. [AS]  
if (Key.isDown(Key.SPACE) && !\_root.LaserFire.\_visible) {  
\_root.Sound.gotoAndPlay(“Fire”);  
tellTarget (\_root.LaserFire) {  
\_x = \_root.LaserBase.\_x;  
\_visible = true;  
}[/AS] This is taken from a Flash 5 program, so you’d need to alter the tellTarget to dot notation. But this is how you detect key presses. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 8, 2003, 12:32am UTC](https://forum.kirupa.com/t/please-help-me/20354/3 "2003-05-08T00:32:59Z")

</div>

Sweet! Thanks a lot! 🙂
