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 preloa开发者_Go百科der 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 !
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.
精彩评论