I'm afraid that doesn't do it either - the problem is, a Canvas with a
backgroundImage style set will never be the target of a click event, the
backgroundImage will always get in the way. I think I'm going to have to
refactor the whole thing at this point...
On Tue, Mar 17, 2009 at 3:51 PM, Tim
Hi Ken,
I'm pretty sure that the target will never be the background image
itself; but rather the Canvas. One hack is to check the type:
if (evt.target is Canvas)
-TH
--- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunning...@...
wrote:
I've got a custom component based on Canvas,
Hi Tim, unfortunately, that's exactly what happens :)
If you apply a backgroundImage, the target of the click event will be the
FlexLoader instance for that image, or in the case of a SWF, it'll be the
actual SWF instance. To make matters worse, the background image is (as far
as I've been able to
Ok, maybe just check it's type:
if (evt.target is FlexLoader)
-TH
--- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunning...@...
wrote:
Hi Tim, unfortunately, that's exactly what happens :)
If you apply a backgroundImage, the target of the click event will be
the
FlexLoader instance
4 matches
Mail list logo