# Collision Detection and addChild

**URL:** <https://forum.kirupa.com/t/collision-detection-and-addchild/320994>\
**Category:** flash\
**Created:** [April 7, 2011, 1:02pm UTC](https://forum.kirupa.com/t/collision-detection-and-addchild/320994 "2011-04-07T13:02:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitho30](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@keitho30](https://forum.kirupa.com/u/keitho30)\
**Post date:** [April 7, 2011, 1:02pm UTC](https://forum.kirupa.com/t/collision-detection-and-addchild/320994/1 "2011-04-07T13:02:48Z")

</div>

Hi guys,

I have a collision detection working so when I drag an e.target on a button a flv loads externally onto the stage, but the flv keeps adding to the stage repeatidly. Is there a way I can drag the the e.target onto the button that the flv will only add to the stage once, even though the e.target remains colliding with the button?

I cant have a MOUSE\_UP event listener as I already have an ENTER\_FRAME listener within the if statement.

This may seem a bit basic but im only new to AS3 and still getting to grips with it.

Thanks in advance.

I have code here if its a bit hard to understand what I mean.
