Announcement

Collapse
No announcement yet.

problem with siwsh/fscommand

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with siwsh/fscommand

    Hi
    I have developed a multimedia flash presentation in swish. I have 2 fscommands for media studio. Ist one to launch acrobat reader installer, it works great. but last fscommand I want it to exit the application at the end of the credit screen. I only seem to be able to have AMS page work on one fscommand and not two. IS 2 possible!!!

    Thanks
    espirito

  • #2
    Re: problem with siwsh/fscommand

    Yes, any number is possible. There is no limit. You could handle hundreds of them. Thousands, if you wanted.

    Suggestion: Check your IF conditions.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: problem with siwsh/fscommand

      excuse my ignorance but I a lost..

      I am using one page in AMS. I have added the .swf to it and on the actions section of the page I have told the application to load the acrobat reader with the fscommand is triggered. I can add more fscommands but how do I link them with the fscommands I made in swish. Is there certian codes to write for certian actions. It seems that if I put a file .exe and a application close fscommand on the AMS page, no matter what I write as a fscommand on the flash movie it doesn't trigger the right thing

      Thanks

      Comment


      • #4
        Re: problem with siwsh/fscommand

        Think of the fscommands that you send from your Flash file as custom "signals." AutoPlay doesn't know what to do when it receives them, unless you tell it what to do.

        In your On FSCommand event, you need to use control structures like IF to make different things happen depending on what the fscommand is.

        Otherwise, it will just perform all of the actions whenever an fscommand is received, regardless of what the actual command was.

        It's like two guys with walkie-talkies using code words. You can't just start sending code words willy-nilly, without telling the other guy what to do when you say something like "Bishop Blue!" or "Redbird, redbird!"
        --[[ Indigo Rose Software Developer ]]

        Comment


        • #5
          Re: problem with siwsh/fscommand

          within swish, click on the fscommand in the "scene" bit and in the box above the Arguements box (sorry i cant remember the name) type something like "fsadobe" for one of the fscommands and "fsexit" for the other.

          then go to AMS,
          and in the flash object do the following code:

          %Property% = LastFSCommand

          If %Property% = fsadobe
          do adobe stuff here
          ELSEIF %Property% = fsexit
          do your credit stuff here
          ENDIF

          its early so i hope it makes sense.
          see ya

          Comment


          • #6
            Re: problem with siwsh/fscommand

            Thanks all, youve helped me ***** it.


            XXX

            Comment


            • #7
              Re: problem with siwsh/fscommand

              one thing more LEGO GIRL

              I havent put an end at the end of my code.. it works without it, but does it need it?

              %property% = Flashobject[red1],GetProperty ["LastFSCommand"]

              IF [%property% = fsexit]
              Aplication.Exit
              ELSE
              If [%property% = fsadobe]
              File.execute ["%ScrDir% acrobat reader.exe","","Continue"]

              Is the command File.Execute ok for an application file or is it better using File.open

              Comment


              • #8
                Re: problem with siwsh/fscommand

                Execute is fine. The only difference between the two for executables is that one lets you set command line options and the working directory for the .exe, and the other one doesn't.

                Yes you need the end at the end.

                It will work without it, most of the time, but it is very improper, and will likely cause you grief in the long run.
                --[[ Indigo Rose Software Developer ]]

                Comment

                Working...
                X