I was trying to find the reference for this but couldn't find it
through Google for some reason.

Anyhow, you can replace the main SWF by using this code:
navigateToURL(new URLRequest(newURL), '_level0');

Where new URL can be any SWF. If you want to simply reload the current SWF, use:

var newURL:String = loaderInfo.loaderURL;


On Fri, Mar 14, 2008 at 12:17 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
>
> If your application uses model-view or MVC architecture, you can reset the
> model to "restart" the app.  Similarly, if the view portion uses states, you
> can reset to the default state to reset the view.
>
>
>
> You can use fscommand to kill the current standalone player and leave the
> new window up.
>
>
>
>  ________________________________
>
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Ricardo Kirkner
>  Sent: Thursday, March 13, 2008 1:23 PM
>  To: [email protected]
>  Subject: [flexcoders] Reloading application in stand alone player
>
>
>
>
>
>
>
> Hi, I am trying to find out how I can reset my application to the
>  state it was in when first loaded (or even better, to reload the
>  application).
>
>  I know that when embedding the application in a web browser I can use
>  the navigateToURL method to achieve this, and it works good enough.
>  The problem is, I want to play my application inside the flash player
>  (so I can run it full screen) instead of using the browser. When
>  running inside the flash player, the navigateToURL method cannot use
>  the _self window, but can only open up a new window, so I need to
>  find an alternate way to do this.
>
>  Any ideas?
>
>  Thank you in advance.
>
>  



-- 

Derek Vadneau

Reply via email to