View Full Version : Flash Command
Rick Wallenbrock
12-06-2004, 06:16 PM
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.
Corey
12-06-2004, 06:56 PM
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. :)
Rick Wallenbrock
12-07-2004, 09:28 AM
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
Corey
12-07-2004, 09:37 AM
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. :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.