# Help needed to cause object to vanish when spacebar is pressed

**URL:** <https://forum.kirupa.com/t/help-needed-to-cause-object-to-vanish-when-spacebar-is-pressed/299622>\
**Category:** Uncategorized\
**Created:** [November 8, 2009, 1:39pm UTC](https://forum.kirupa.com/t/help-needed-to-cause-object-to-vanish-when-spacebar-is-pressed/299622 "2009-11-08T13:39:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mushi206](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@mushi206](https://forum.kirupa.com/u/mushi206)\
**Post date:** [November 8, 2009, 1:39pm UTC](https://forum.kirupa.com/t/help-needed-to-cause-object-to-vanish-when-spacebar-is-pressed/299622/1 "2009-11-08T13:39:30Z")

</div>

I am using flash 8 and actionscript 2

I am new to coding so am unsure how to perform certain tasks

Im creating a game where i need, to press the spacebar button upon nearing an object and then that object vanishes.

Thanks for any and all help!
