Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Phil The Rope Guest

    Recognizing end of flash movie

    I've produced a flash movie (my first). I've embedded an fscommand to close the player on finishing and this works fine until I try to run it from Media Studio 5. Studio simply does not seem to acknowledge the test

    if (e_FSCommand == "quit")
    then
    (I've tried page jumps, all sorts from here)
    end

    Running the debugger shows that the test never passes the test, i.e quit is NEVER true (although it works, as I say, in Flash player) so I'm unable to define any actions on "quit".

    I've persevered with this all day but am running out of ideas!

    I'd be grateful for any suggestions.

  2. #2
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    Hi,

    One of the things that you might try in order to debug this is using a Dialog.Message() action to display the contents of e_FSCommand.

    So try putting this at the beginning of the "On FSCommand" action:

    Code:
    Dialog.Message("Debug",e_FSCommand);
    This will tell you what FS Commands your Flash movie is passing to AutoPlay, and if the "quit" message is being passed properly. Per haps the case is incorrect?
    MSI Factory The Next Generation Intelligent Setup Builder

  3. #3
    Phil The Rope Guest
    Hi Mark.

    I tried what you suggested, although "e_FSCommand" needed quotes around it apparently ("argument 2 must be of type string") -

    Dialog.Message("Debug","e_FSCommand)";

    Of course, because argument 2 is now of type string, all I get is a dialogue box with the string "e_FScommand" in it, rather than the value of the actual variable e_FSCommand (which I hope to be "quit").

    I truly feel there's something trivial I'm doing wrong here, but I don't know what!

    I'm a novice at this, so please forgive me!

    Regards,

    Phil

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi Phil sorry for the delayed reply. Here's an attached project which shows how to do this including the original flash source file... Let me know if you need anything else.

    P.S. As far as I could see from your code the only error was that you didn't have it on the flash object's "OnFScommand" area but rather on the page's OnShow area maybe?

    http://www.indigorose.com/temp_web/phil.zip

    Corey Milner
    Creative Director, Indigo Rose Software

  5. #5
    Phil The Rope Guest
    Thanks folks!

    In the cold light of day over here in the Uk, I thought I'd look at your advice again with a fresh mind and body!

    It's now working - thanks ever so much for your prompt and useful help!

    Thanks again,

    Phil

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746


    Corey Milner
    Creative Director, Indigo Rose Software

  7. #7
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    Originally posted by Phil The Rope
    Hi Mark.

    I tried what you suggested, although "e_FSCommand" needed quotes around it apparently ("argument 2 must be of type string") -
    Hi Phil,

    I know that you have this working now, but I just thought that I would let you know that e_FSCommand is an event variable and a string so it should not have to be placed in quotes in order to be displayed in a Dialog.Message() action.

    Either way it works no so no big deal.
    MSI Factory The Next Generation Intelligent Setup Builder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts