Web Design Resources & Tutorials to help you design the best website!

Here is how you can reload a Flex Application Via a Click of a button using the Application.application.url property
<code> <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" backgroundColor="0xFFFFFF"> <mx:Script> <![CDATA[ private function onReloadFlexApp():void { var urlRequest:URLRequest = new URLRequest(Application.application.url); navigateToURL(urlRequest,"_self"); } ]]> </mx:Script> <mx:Button label="Click Here to Reload" click="onReloadFlexApp()"/> </mx:Application> </code>

1 Response to Reloading a Flex Application Via URLRequest and application.url
Tom Van den Eynde
December 17th, 2008 at 9:22 am
Exactly what I needed. Thanks!