Detect the End of a Flash Movie

  • Konuyu başlatan Konuyu başlatan guclusat
  • Başlangıç Tarihi Başlangıç Tarihi

guclusat

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:
Kod:
fscommand("quit", "");

  1. 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
 
Geri
Yukarı