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_4404 IMG_6093 IMG_1880 img_5549_gs IMG_3192 img_0984_gs IMG_3605_grey IMG_4980 IMG_4050 IMG_7561 IMG_3568_grey IMG_2819

Latest Comments

Latest Article

Categories

del.icio.us