View Full Version : Recognizing end of flash movie
Phil The Rope
12-18-2003, 03:48 PM
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.
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:
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?
Phil The Rope
12-18-2003, 05:10 PM
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
Corey
12-18-2003, 05:15 PM
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 (http://www.indigorose.com)
Phil The Rope
12-19-2003, 03:47 AM
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
Corey
12-19-2003, 05:01 AM
:)
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
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.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.