# actionscript3.0

**URL:** <https://forum.kirupa.com/t/actionscript3-0/319406>\
**Category:** Uncategorized\
**Created:** [February 19, 2011, 12:19pm UTC](https://forum.kirupa.com/t/actionscript3-0/319406 "2011-02-19T12:19:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benny\_gj](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@benny\_gj](https://forum.kirupa.com/u/benny_gj)\
**Post date:** [February 19, 2011, 12:19pm UTC](https://forum.kirupa.com/t/actionscript3-0/319406/1 "2011-02-19T12:19:53Z")

</div>

addEventListener(MouseEvent.CLICK, clickAction);  
function clickAction (e:MouseEvent):void  
{  
addChild(btn\_mc);  
}

//for every click it will adds a new btn\_mc instance on the stage…  
I wants to add the btn\_mc instance to the stage at only once… How can I achieve this?
