Is there a way to completely reload a Flash Projector file without closing it and opening it again? I have an application that needs to be restarted frequently for each unique person who uses it.
Just setting the variables to null and reset them as I go don't cut it. I also use removeChildAt & addChild functionality (for swapping english and spanish movie clips), which i found is tough to reset.
Use FSCommand to launch a BAT file and have it reload the EXE. The EXE will have to EXEC the BAT file and then call FSCommand("quit", "") to terminate itself but that will effectively restart/reload the projector.
The start_flash.bat containing the code to start my projector is in the same dir as the projector. When that code executes, a cmd window flashes and the application closes. It's two quick for me to see what it's saying, but it appears that the start_flash.bat isn't being executed or not being allowed to be executed since the file doesn't load back up.
The BAT file has to be in a folder called "fscommand" (Flash security sanbox requirement) so what you're seeing is Flash opening a command prompt that probably just says "file not found" and exits Inside the BAT file you'll need to use a relative path to the EXE to relaunch it, something like this..