# 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/299605>\
**Category:** flash\
**Created:** [November 7, 2009, 10:07pm UTC](https://forum.kirupa.com/t/help-needed-to-cause-object-to-vanish-when-spacebar-is-pressed/299605 "2009-11-07T22:07:31Z")\
**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 7, 2009, 10:07pm UTC](https://forum.kirupa.com/t/help-needed-to-cause-object-to-vanish-when-spacebar-is-pressed/299605/1 "2009-11-07T22:07:31Z")

</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!
