Hi,
In some Flex application need to navigate into flex application into other application. Those navigation can performs into the same window or new window by using the navigateToURL function from flash.net.navigateToURL. The below example contains two button for navigate to same as well as new window.
In some Flex application need to navigate into flex application into other application. Those navigation can performs into the same window or new window by using the navigateToURL function from flash.net.navigateToURL. The below example contains two button for navigate to same as well as new window.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
private function onNavigateNew():void
{
navigateToURL(new URLRequest("http://www.google.com"),"POST");
}
private function onNavigateSame():void
{
navigateToURL(new URLRequest("http://ww.yahoo.com"),"_self");
}
]]>
</mx:Script>
<mx:VBox width="200" height="200" paddingLeft="20" paddingTop="20">
<mx:Button label="New Window" click="onNavigateNew()"/>
<mx:Button label="Same Window" click="onNavigateSame()"/>
</mx:VBox>
</mx:Application>
No comments:
Post a Comment