Is this a bug, or am I missing something?
In a custom Image component, I want to embed the image. When I do this, the ability to click the icon stops working. Below are two snippets of code. The first where I embed the image, the second where I don't. The first will not allow clicking the component, the second works fine.
Is this a bug? or am I missing something?
I am using v3.5 of the compiler.
==================================
public class HelpIcon extends Image
{
[Embed(source="/assets/Info.png")]
public var thisIcon:Class;
public function HelpIcon()
{
super();
this.addEventListener(MouseEvent.CLICK, helpClicked,true,5); // so we know when help has been asked for
this.source = thisIcon;
}
==================================
public class HelpIcon extends Image
{
[Embed(source="/assets/Info.png")]
public var thisIcon:Class;
public function HelpIcon()
{
super();
this.addEventListener(MouseEvent.CLICK, helpClicked,true,5); // so we know when help has been asked for
this.source = "assets/Info.png";
}