3 Replies Latest reply on Oct 24, 2006 10:00 AM by Newsgroup_User

    restarting a running flash projector

    lou_games
      Is there anyway of restarting a running flash executable using script?
      ie, click "restart button" and the exe reloads itself.
      Thanks,
      L.
        • 1. Re: restarting a running flash projector
          Level 7
          Using the fscommand exec open the same file again and then issue the

          fscommand("quit");

          to close the existing file.

          Try that.

          Regards
          FlashJester Support Team
          e. - support@flashjester.com
          w. - http://www.flashjester.com

          There is a very fine line between "hobby" and
          "mental illness."


          • 2. Re: restarting a running flash projector
            lou_games Level 1
            Thanks,
            I have the problem now where it only works once.

            The code:
            ------------
            restartBtn.onRelease = function() {
            fscommand("quit");
            fscommand("exec", "openApp.bat");
            }

            this restarts the same exe. However when i click restart button again, it will not quit and reload. Does it change reference? Any advice?

            _root.fscommand("quit");

            didn't work.
            thanks,
            L.
            • 3. Re: restarting a running flash projector
              Level 7
              The documentation reads:
              "application must be in a subfolder named 'fscommand'. This subfolder must
              be in the same directory as the projector which uses the fscommand action".

              I read this as if exec calls itself you need to nest the 'fscommand' folder
              with the copy of openApp.bat as many times as you want the button to work.

              Why not to try loadMovie() instead?

              "lou_games" <webforumsuser@macromedia.com> wrote in message
              news:ehi9jc$ej6$1@forums.macromedia.com...
              > Thanks,
              > I have the problem now where it only works once.
              >
              > The code:
              > ------------
              > restartBtn.onRelease = function() {
              > fscommand("quit");
              > fscommand("exec", "openApp.bat");
              > }
              >
              > this restarts the same exe. However when i click restart button again,
              it
              > will not quit and reload. Does it change reference? Any advice?
              >
              > _root.fscommand("quit");
              >
              > didn't work.
              > thanks,
              > L.
              >