5 Replies Latest reply on May 12, 2006 5:49 PM by 123lionel

    Flash & Fscommand?

    123lionel
      Hi I'm looking for Flash solutions, please help.

      I want to do:
      - create a CD that contains a Flash Animation and a game
      - upon inserting the CD, Windows will first play the Flash Animation (The computer must have the autoplay enabled.) May be it should involve a small EXE that checks for existence of a Flash Player and if it is not in there, the small EXE will prompt the user and initiate the installation of the Flash Player first
      - The Flash Animation is being played. Within the Flash, there are scripts that reads the content of a TXT file and have the content displayed on the screen via the design of the animation
      - Then, after the Flash introduction is done, it continues and launch the game.

      Any pointers? or good way to handle that? Many thanks...
        • 1. Re: Flash & Fscommand?
          Level 7
          123lionel wrote:
          > Hi I'm looking for Flash solutions, please help.
          >
          > I want to do:
          > - create a CD that contains a Flash Animation and a game
          > - upon inserting the CD, Windows will first play the Flash Animation (The
          > computer must have the autoplay enabled.) May be it should involve a small EXE
          > that checks for existence of a Flash Player and if it is not in there, the
          > small EXE will prompt the user and initiate the installation of the Flash
          > Player first

          create a projector from Flash and you can forget about the user having
          Flash player or not

          for autoplay add a plain text file named AUTORUN.INF containing:

          [autorun]
          OPEN=YOUR_PROJECTOR_NAME.EXE
          ICON=YOUR_ICON.ICO

          > - The Flash Animation is being played. Within the Flash, there are scripts
          > that reads the content of a TXT file and have the content displayed on the
          > screen via the design of the animation

          loadVars class

          > - Then, after the Flash introduction is done, it continues and launch the game.
          >
          > Any pointers? or good way to handle that? Many thanks...
          >
          >
          • 2. Re: Flash & Fscommand?
            123lionel Level 1
            Thanks John,

            Any samples that I can look at the use of LoadVars class in a Flash.

            Also, within Flash, can I launch another EXE (similar to the Shell command in WIN)?
            • 3. Re: Flash & Fscommand?
              Level 7
              123lionel wrote:

              > Thanks John,
              >
              > Any samples that I can look at the use of LoadVars class in a Flash.

              lv = new LoadVars();
              lv.load("text.txt");

              lv.onLoad = function(success) {
              if (success) {
              yourField.text = this.var1;
              }
              };

              text.txt
              --------
              var1=Put here the text you want to display ...

              > Also, within Flash, can I launch another EXE (similar to the Shell command in WIN)?

              yes: fscommand("exec", filename);

              not that depending on your version could be some restrictions. for
              example in F7/F8 the EXE must be in a folder named fscommand
              • 4. Re: Flash & Fscommand?
                Level 7
                Here an example for the fscommand exec, incase you get stuck

                http://flashjester.com/index.php?section=faq&cPath=28_41#202

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

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


                • 5. Re: Flash & Fscommand?
                  123lionel Level 1
                  Thanks for the help.

                  it works only when the Flash is export to become and EXE. When it is FLA or SWF, it doesn't work.Is it supposed to be like that?