Preload assets with JavaScript, load-complete callback for single assets include SWF/Flash

Currently i need to know within JavaScript when a SWF-file was loaded completly. You could easily handle this with a single ExternalInterface call from within the Flash-application. This is not a very nice solution if this has to be done for each of you flash-applications. This is the neccesary way if you also have to access the flash-application from javascript-side. But in my case i just need to know when the flash is loaded and available in the browser cache.

For this i wrote the swfJSPreLoader. This preloader accepts an array of assets (jpg,gif,png,swf) you would like to preload. Internally it will create an flash-application which does the preloading. You could define several callback handlers. So JavaScript gets to know when all assets are loaded or each single asset is loaded including SWF-files.

Search:

Twitter

XING

Flex User Group Hamburg

Gallery

IMG_3605_grey IMG_8730 img_1078_gs IMG_3950 IMG_4980 img_1267_gs IMG_3136 IMG_8547 IMG_3145 IMG_1880 IMG_6093 IMG_3467

Latest Comments

Latest Article

Categories

del.icio.us