London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
Array

Open in Browser

Must Read

Admin
Admin
Just post!

From within your application, you can open a link using the device’s native browser in the same manner as you would in a traditional browser-based Flex application. This is accomplished with the URLRequest class. Simply creating a new URLRequest and passing it into the navigateToURL method will invoke the user’s browser to handle the request. Figure 6-1 shows the sample application running and Figure 6-2 shows the results of clicking on the Open button:

<?xml version=”1.0″ encoding=”utf-8″?>
<s:Application xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:s=”library://ns.adobe.com/flex/spark”>
<fx:Script>
<![CDATA[
protectedfunction sendIt_clickHandler(event:MouseEvent):void
{
var s:String = “”;
s+= address.text;
navigateToURL(new URLRequest(s));
}
]]>
</fx:Script>
<fx:Declarations>
<!– Place non-visual elements (e.g., services, value objects) here –>
</fx:Declarations>
<s:Label text=”URL” top=”40″ left=”50″/>
<s:TextInput id=”address” top=”30″ left=”160″ text=”http://www.happytoad.com”
width=”250″/>
<s:Button id=”sendIt” label=”Open” click=”sendIt_clickHandler(event)” top=”110″
left=”160″/>
</s:Application>

Open a link in a browser

Clicking the link launches the browser selector

- Advertisement -

Latest News

Bentley Unveils New Flying Spur: A 771 bhp Hybrid Supercar with Four Doors

Bentley Motors is set to revolutionize the luxury car market with the launch of its new Flying Spur on...
- Advertisement -

More Articles Like This

- Advertisement -