Jake Bellacera
Jake Bellacera

Reputation: 874

Any way to run JS after swf is finished playing?

I'm working on a project where a SWF will play (as sort of a splash), followed by JS. After the video plays, the navigation and content will appear, and the video will fade out. I'm just wondering what would be the best way to accomplish this? Play the video first and then load everything via ajax behind the scenes? The goal is to be as seamless as possible and I am having a flash asset provided to me by the client. I have zero experience with flash outside of simply embedding.

Upvotes: 1

Views: 430

Answers (1)

Samuel Neff
Samuel Neff

Reputation: 74909

The Flash asset can call a JavaScript method via ExternalInterface when it's done.

However, the use of Flash for splash screens is something generally hated by users. I would recommend against it unless it's an intro they specifically click a "Show Intro" button to show (as opposed to always showing with a Skip Intro to skip).

Upvotes: 3

Related Questions