

Here is a nice little trick to allow a Flex application reload itself. This is very handy when you are dealing with server side logics that need refreshing the application for something new.
The idea of this reload is via Application.application.url.
var urlRequest:URLRequest = new URLRequest(Application.application.url); navigateToURL(urlRequest,"_self");
The above code will do it. Nice and simple.
If you would like to make a comment, please fill out the form below.
I was looking for a solution and I tried the suggestion above but that resulted in the SWF being reloaded instead of the page containing the SWF. Therefore Javascript functions (eg. used for history management) and URL parameters were lost.
Therefore I suggest the following:
ExternalInterface.call(”window.location.reload”);
Cool! Thanks alot !!
Does anyone know of a way to reload the app without IE blocking the reload with warnings?
OK, disregard my post.
ExternalInterface(”window.location.reload) does fine.
All I’m trying to do is reset all input and return to a login screen; a change watcher will be quicker and more seamless, I think.
thanks
Can we do reloading without refreshing the page?
Hi,
Thanks for this quick and simple solution. I was searching for exactly this and found it here - simple and short.