# Add object to stage on mouseclick

**URL:** <https://forum.kirupa.com/t/add-object-to-stage-on-mouseclick/298985>\
**Category:** flash\
**Created:** [October 28, 2009, 5:58am UTC](https://forum.kirupa.com/t/add-object-to-stage-on-mouseclick/298985 "2009-10-28T05:58:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jord070](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jord070](https://forum.kirupa.com/u/Jord070)\
**Post date:** [October 28, 2009, 5:58am UTC](https://forum.kirupa.com/t/add-object-to-stage-on-mouseclick/298985/1 "2009-10-28T05:58:57Z")

</div>

Hi guys,

Complete newbie to flash and as3, but im getting into it a bit with college and im making a small basic flash webpage.

Im not sure if this is possible but im going try and explain it best i can to get a few pointers.

So i basically have a webpage with 4 different pages, (each page being a MC ), But the pages arnt new keyframes, Instead they are small movie clips taht look like post cards.

the idea i have is so when the about button is clicked it will add the about\_mc to stage, it does not change to new frame, But stay’s on the current frame, While it imports the about\_mc to stage…

i hope that makes sence.

My basic understanding is if i use code like this

about\_btn.addEventListener(MouseEvent.CLICK, addAbout);

function addAbout(event:MouseEvent) {  
trace(“about btn clicked”);

[COLOR=“RoyalBlue”]and in here insert something like, [SIZE=“4”]import about\_mc to stage[/SIZE], it would work[/COLOR]

}  
but im nto sure how to go about writing the code.

anyhelp would be much apprieciated.  
cheers  
Jordan
