# Help for balloon popping test

**URL:** <https://forum.kirupa.com/t/help-for-balloon-popping-test/288369>\
**Category:** flash\
**Created:** [May 14, 2009, 8:21pm UTC](https://forum.kirupa.com/t/help-for-balloon-popping-test/288369 "2009-05-14T20:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crash41](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@crash41](https://forum.kirupa.com/u/crash41)\
**Post date:** [May 14, 2009, 8:21pm UTC](https://forum.kirupa.com/t/help-for-balloon-popping-test/288369/1 "2009-05-14T20:21:18Z")

</div>

I found some code for a popping balloon.

It has one balloon on the stage with instance name “baloon” and the code in the action frame is this:

onMouseDown= function () {  
mx=\_xmouse;  
my=\_ymouse;  
if (balloon.hitTest(mx, my)) {  
balloon.play();  
}  
}

I want to add more balloons to the stage. When i do - how do i change the actionscript to accommodate the extra balloons? I assume i need to give them each unique instance names too?

thanks!
