Refreshing a Flex Page

After a good amount of googling,i stumbled upon the below solution to refresh the Flex Page with-out much of a hassle with events or event-listeners.


protected function reloadpage(event:MouseEvent):void
{
  var ref:URLRequest = new URLRequest("javascript:location.reload(true)");
  flash.net.navigateToURL(ref, "_self");
}

Courtesy: Kumar Gandhi

Advertisements

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