Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Flash Command

  1. #1
    Join Date
    Oct 2004
    Posts
    14

    Flash Command

    I have searched on the discussion board and can't find the answer to this.

    I want the flash program to disappear when it ends. So, right now the flash starts automatically when the page opens, which is what I want. I have two buttons that allow the user to stop the flash in which case it will disappear (I set the button property to (on click):

    Flash.Stop("WMD Flash");
    Flash.SetVisible("WMD Flash", false);

    This is fine, but if a user watches the whole flash program, I would like it to disappear automatically at the conclusion.

    Any help is greatly appreciated. P.S. I am not using Macromedia but Coffee Cup Firestarter.

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. Put an fscommand on the last frame of your Flash movie, i.e.

    fscommand("exit");

    Then in AMS simply put an action in the Flash object's OnFSCommand event to detect that fscommand and hide the flash object, so for example:

    if e_FSCommand=="exit" then
    Flash.SetVisible("Object Name", false);
    end

    Just change the "Object name" part to match the name of your Flash object. Hope that helps.

  3. #3
    Join Date
    Oct 2004
    Posts
    14

    Flash Command

    Corey - Thanks for responding. I think that the FLash porgram I use is not quite a feature rich as Macromedia. I looked at the FScommand training in the CD's I bought and the program I use - CoffeeCup Firestarter 6.5 - doesn't have the capability to add fs commnad as gfar as I can tell.

    Question 1: Is there work around to adding an fs exit command?

    What I have is some text behind the flash app so that when it stops it will disappear and the view will then see the text.

    Questions 2. I have two buttons now so that if a view wants to stop the flash (it is set to run automatically when they go to this page and if they have been there before, I don't want them to sit thorugh the whole flash again.) This button is called "Skip Flash" and has the following command:
    Flash.Stop("WMD Flash");
    Flash.SetVisible("WMD Flash", false);
    I also have a "Start Flash" button with the follwoing commands:
    Flash.SetVisible("WMD Flash", true);
    Flash.Load("WMD Flash", "AutoPlay\\Flash\\Hahn WMDFinalver2_5.swf", false, false);
    Flash.Play("WMD Flash");
    This will start the Flash from the begining the first time you click the button. But if you hit the Skip button and then hit the Start button, it plays the flash at the point where it was last stopped. I would like to start it from the beginning everytime you hit the Start button.
    Any help is appreciated. Thanks

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. You could use the page timer in conjunction with a Flash.GetState(); action to detect when the Flash is "complete" and then hide it. Hope that helps.

Similar Threads

  1. lowest flash version
    By LegoGirl in forum AutoPlay Media Studio 4.0
    Replies: 13
    Last Post: 07-31-2003, 06:04 AM
  2. Flash to invoke PageJump on FS Command
    By johndove1 in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 01-28-2003, 09:23 AM
  3. HOWTO: AutoPlay Media Studio 4.0 and Flash Interaction
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 10:40 AM
  4. HOWTO: Install the Flash Player from a CD-ROM
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 04:05 PM
  5. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

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