Skip to main content
buchtkd
Participant
June 6, 2017
Question

Flash Animate AS 3.0 - reset game fx issue

  • June 6, 2017
  • 1 reply
  • 216 views

reset game function issue when publishing to an .exe

Code...

//Reset Game Function

function resetGame(event:MouseEvent){

   var url:String = stage.loaderInfo.url;

    var request:URLRequest = new URLRequest(url);

    navigateToURL(request,"_level0");

}

The above code works in the .swf format but when published as a Win projector file (.exe), it only returns a blank screen after it is initiated.  How do I fix this?

This topic has been closed for replies.

1 reply

Legend
June 6, 2017

Projectors run as stand-along executables, not in a web browser. Of course anything to do with URLs is going to be non-functional. Looks like you're going to have to reset things properly instead of force-reloading the entire game.

buchtkd
buchtkdAuthor
Participant
June 6, 2017

So what code would work best for resetting my game?

Legend
June 6, 2017

That's like asking a stranger how to get home. It's your code, your game. Only you know what needs to be reset and reinitialized.