RSS

StageWebView Location Changing without a Page Refresh

12 Sep

StageWebView Location Changing without a Page Refresh

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);

	}

}
Advertisements
 
Leave a comment

Posted by on September 12, 2011 in Action Script3, Adobe Air, flash

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: