Created
November 7, 2010 19:52
-
-
Save srohde/666366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" title="Home" | |
xmlns:local="*"> | |
<fx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; | |
protected function stageWebView_locationChangingHandler(event:LocationChangeEvent):void | |
{ | |
trace("location changing " + event.location); | |
// You can call event.preventDefault() to prevent the URL change | |
} | |
protected function stageWebView_locationChangeHandler(event:LocationChangeEvent):void | |
{ | |
trace("location change " + event.location); | |
} | |
]]> | |
</fx:Script> | |
<mobile:StageWebViewUIComponent xmlns:mobile="com.soenkerohde.mobile.*" id="stageWebView" url="http://google.com" | |
locationChanging="stageWebView_locationChangingHandler(event)" | |
locationChange="stageWebView_locationChangeHandler(event)"/> | |
</s:View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment