Detect the End of a Flash Movie


Tanınmış Üye
Süper Moderatör
Detect the End of a Flash Movie
In AutoPlay Media Studio it is possible to detect when a flash movie ends by using an FSCommand. This is useful if, for example, you want to navigate to another page once your flash movie ends.

To accomplish this:

  1. In Macromedia Flash: Create a Flash movie which contains an FSCommand on the last frame of the timeline:
fscommand("quit", "");
  1. Insert the following code into the On FSCommand event of your flash object:
if e_FSCommand == "quit" then
   --Whatever script is here will be performed when your flash movie ends.