Created
January 12, 2011 22:50
-
-
Save tpryan/777064 to your computer and use it in GitHub Desktop.
ActionScript StageWebView snippet
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
protected var webView:StageWebView = new StageWebView(); | |
protected function processAuth(event:ServiceEvent):void | |
{ | |
var url:String = "http://theurl.com"; | |
webView.addEventListener(Event.COMPLETE, afterAuthLoad); | |
webView.loadURL(url); | |
} | |
protected function onComplete(event:Event):void | |
{ | |
if (webView.title == "Remember The Milk - Application successfully authorized"){ | |
webView.dispose(); | |
auth.addEventListener("result", setToken); | |
auth.getToken(frob); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment