You might have to set mouseEnabled and/or mouseChildren on the Image
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cesare Rocchi Sent: Saturday, June 02, 2007 6:13 PM To: flexcoders Subject: [flexcoders] Image click handler Hello everybody, I am experimenting with Flex. I started from official examples, from Adobe. Particularly this one: http://www.adobe.com/devnet/flex/quickstart/httpservice/ <http://www.adobe.com/devnet/flex/quickstart/httpservice/> Looking at the demo I thought it would have been nicer to have the picture of page open when the picture itself, and not the link button below, is clicked. I noticed that <mx:Image has a 'click' event so I "very simply" copied the same instruction in the image tag, like this: <mx:Image source="{parseImageUrl(photos.currentItem.content)}" click="openAuthorPage(event);" /> <mx:LinkButton label="{photos.currentItem.author.name}" click="openAuthorPage(event);" /> Compiled (no error) and tested. I click on the image and it does not happen anything. Link button still works. Isn't the same action fired from 2 different 'places' in the ui? Looks very very strange to me. Any idea? ps. I tested other functions on image click (e.g. Alert.show('hello')). They work. What's wrong? Is the event considered in a different way? Thanks in advance, -c. ________________________________ Shape Yahoo! in your own image. Join our Network Research Panel today! <http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo _panel_invite.asp?a=7>