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