Skip to content

Instantly share code, notes, and snippets.

@darkredz
Created July 15, 2012 10:38
Show Gist options
  • Save darkredz/3116217 to your computer and use it in GitHub Desktop.
Save darkredz/3116217 to your computer and use it in GitHub Desktop.
URI Scheme trigger in UIWebView ane
//if you want to handle mailto and skype scheme in your app
nativeWeb.urlSchemes = ["mailto", "skype"];
nativeWeb.addEventListener(UIWebViewEvent.URL_SCHEME_TRIGGER, onUrlScheme);
function onUrlScheme(event:UIWebViewEvent):void
{
//do something with it
//event.url = mailto:me@abcdef.com
trace( 'URI scheme detected: ' + event.url );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment