Select to view content in your preferred language

Hyperlink question

457
3
04-30-2010 10:07 AM
ScottSumners
Emerging Contributor
This maybe a stupid question but how do you open a hyperlink with one click of the mouse on the map?  I have it working with the Live Layer Widget and then click the arrow and I want to eliminate the extra clicks.  Is this possible?
Tags (2)
0 Kudos
3 Replies
Jose_A_Rodriguez
Emerging Contributor
I am not sure if this is what you are asking:

<mx:Label x="85.5" y="37" text="YOURTEXT" textAlign="center" fontSize="12">
  
                 <mx:click>navigateToURL(new URLRequest('URL'),'YOURSITE NAME')</mx:click>

</mx:Label>

Hope this helps
0 Kudos
ScottSumners
Emerging Contributor
Where do I put this code?
0 Kudos
MattLane
Frequent Contributor
If you want to click on a graphic and open a link then in the livelayerwidget.mxml, around 253 is where that can be done.  Add an event listener on the graphic click and you could pass the urlrequest something like the link from the infoData.
0 Kudos