Bitmap as button?

Posted by Hwang on Stack Overflow See other posts from Stack Overflow or by Hwang
Published on 2010-04-10T18:27:12Z Indexed on 2010/04/10 18:33 UTC
Read the original article Hit count: 234

Filed under:
|
|

How to set a bitmap as a button so that i can apply button mode and mouse-event stuff on it, without adding the bitmap to a Movie Clip?

var bmpFull=new Bitmap(event.currentTarget.content.bitmapData);
        bmpFull.smoothing=true;
        bmpFull.name="photo";
        bmpFull.alpha=0;

        //fullMC.buttonMode=true;
        fullMC.addChild(bmpFull);

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about bitmap