Flex Using navigateToURL with dynamic URL
Posted by Johnly on January 8th, 2010The following example shows how we can navigateToURLĀ and redirect users into the new page.
<mx:Repeater id="imageRepeater" >
<mx:Panel width="173" height="173" verticalAlign="middle" layout="vertical"
click="navigateToURL(
new URLRequest(event.currentTarget.getRepeaterItem().url), '_self');" >
<mx:Image source="{imageRepeater.currentItem.src}" />
<mx:Label text="{imageRepeater.currentItem.title}"
horizontalCenter="0" top="250" styleName="paneltitle" />
</mx:Panel>
</mx:Repeater>
Recent Comments