Addchild button

Hi everybody,

I’ve got a stupid question probably but anyway i ask it. I create a button in my library and i want to add it to a movieclip. I’ve learned as3 not a long ago and easy stuff seems really hard to me now that i need to forget a lot of things about as2. So basically i did something like:


var myButton:Button (or simpleButton) = new backButton();
myClip.addChild(myButton);

It doesn’t work. What do i do wrong ?

PS Sorry if this has been asked before, i didn’t find anything.

[AS]
// backButton is the linkage name of your movieclip in the library
var myButton:backButton = new backButton();
myClip.addChild(myButton); [/AS]

ahhhhhhhhh it was that stupidly easy. Thank you !!!
But now how do you add the click on the button ?