/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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); } }