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/


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.




       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

Reply via email to