Flash 4 BitmapImage and events

Posted by tit on Stack Overflow See other posts from Stack Overflow or by tit
Published on 2010-03-14T08:21:32Z Indexed on 2010/03/14 8:25 UTC
Read the original article Hit count: 349

Filed under:
|
|
|
|

Hi,

I am trying to use BitmapImage spark class instead of mx image class. Imag loads the same, fine

<s:BitmapImage  id="img" source="sample.jpg">

</s:BitmapImage>

But I have an issue with adding mouse events on it, eg:

img.addEventListener(MouseEvent.CLICK,clicked);

do not trigger any mouse events when clicking on the image

Help! Thanks

© Stack Overflow or respective owner

Related posts about bitmapimage

Related posts about events