# Deleting/Removing attached objects

**URL:** <https://forum.kirupa.com/t/deleting-removing-attached-objects/218768>\
**Category:** programming\
**Created:** [March 10, 2007, 8:19pm UTC](https://forum.kirupa.com/t/deleting-removing-attached-objects/218768 "2007-03-10T20:19:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esoltas](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@Esoltas](https://forum.kirupa.com/u/Esoltas)\
**Post date:** [March 10, 2007, 8:19pm UTC](https://forum.kirupa.com/t/deleting-removing-attached-objects/218768/1 "2007-03-10T20:19:08Z")

</div>

In my vertical shooter game ( **SWF link here:** [http://www.megaupload.com/?d=PPF3192Y](http://www.megaupload.com/?d=PPF3192Y)), I attach bullets (aka duplication with attachMovieClip) and flags. Both do certain things fine (the flags progress to the left horizontally; the bullets up). The enemy (the flags) is contained in a var, the bullets not. How can I execute a hitTest so that when the two collide, they both delete? ( **FLA link here:** [http://www.megaupload.com/?d=H4LBGTHE](http://www.megaupload.com/?d=H4LBGTHE)). Thanks so much. Email me at esoltas at [gmail.com](http://gmail.com) if necessary.
