# Adding click event to MovieClip in library in as3

**URL:** <https://forum.kirupa.com/t/adding-click-event-to-movieclip-in-library-in-as3/325379>\
**Category:** Uncategorized\
**Created:** [October 12, 2011, 10:50am UTC](https://forum.kirupa.com/t/adding-click-event-to-movieclip-in-library-in-as3/325379 "2011-10-12T10:50:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![think](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@think](https://forum.kirupa.com/u/think)\
**Post date:** [October 12, 2011, 10:50am UTC](https://forum.kirupa.com/t/adding-click-event-to-movieclip-in-library-in-as3/325379/1 "2011-10-12T10:50:31Z")

</div>

hii frndss!! am n a gr8 confusion…, would u pls clear tat… In actionscript3.0 how to make an movieclip in library clickable?? i have intially a button on the stage when i click tis button, then the movieclip should appear and then when i click the movieclip a new bitmap should appear… my problem is when i click the button, then the MovieClip from library gets loaded. But “WHEN I CLCIK THE MOVIECLIP ITS NOT LOADING THE BITMAP DATA FROM THE URL I HAVE GIVEN…” pls spare sometime to help me out… it would b really helpfull if u tell me how to solve tis…  
my coding are lik tis  
var s : s1 = new s1();// s is the instance name given to movieclip whose  
class is s1  
function disp(event:MouseEvent):void{  
loader1:Loader= new Loader();  
loader1.load(new URLRequest(“thumb.jpg”);  
addChild(loader1);  
}  
s.addEventListener(MouseEvent.CLICK,disp);// s is the instance name of the MovieClip and i am trying to add click event.  
any help is appreciated… thanks in advance frnds…
