I’m having some trouble turing an embedded image into a clickable button. Is there a quick way to do this. Here’s an idea of what i’ve tried thus far:
[Embed(source = “/…/lib/pic.jpg”)]
public var pic:Class;
var button:Spite = new Sprite();
var picButton:Bitmap = new pic();
button.buttonMode=true;
button.useHandCursor=true;
button.addChild(picButton);
button.addEventListener(MouseEvent.CLICK, function);
Am I close? ;(