Jaaq
Jaaq

Reputation: 611

Ajax preloader for SWF files.. is it possible?

I am looking for a javascript based preloader that can handle .SWF (flash) files.

I'm very much aware that it is possible to preload a flash file by using another flash file, but I was wondering if anyone knows about an AJAX preloader that can load swfs (also, a progressEvent would be a nice extra) and then add the flash file to the HTML document.

I did quite some googling but it seems that there is no such thing out there. Is it überhaupt possible ?

Thanks !

Upvotes: 0

Views: 1929

Answers (1)

BarsMonster
BarsMonster

Reputation: 6585

Well, nothing impossible: Load SWF on a hidden div, and provide additional external interface in SWF for progress monitoring, so that your SWF can report upload progress via external method or a callback. When it's done downloading, you can just show this DIV, or load it in another DIV, and it will be loaded from cache.

Upvotes: 1

Related Questions