Posted By

tpryan on 03/15/11


Tagged

AIR StageWebView


Versions (?)

StageWebView Location Changing without a Page Refresh


 / Published in: ActionScript 3
 

  1. protected var webView:StageWebView = new StageWebView();
  2.  
  3. protected function processAuth(event:ServiceEvent):void
  4. {
  5.  
  6. var url:String = "http://theurl.com";
  7. webView.addEventListener(Event.COMPLETE, afterAuthLoad);
  8. webView.loadURL(url);
  9.  
  10. }
  11.  
  12. protected function onComplete(event:Event):void
  13. {
  14.  
  15. if (webView.title == "Remember The Milk - Application successfully authorized"){
  16. webView.dispose();
  17. auth.addEventListener("result", setToken);
  18. auth.getToken(frob);
  19.  
  20. }
  21.  
  22. }

Report this snippet  

You need to login to post a comment.