EU Tour 2010 – "Die letzte Bratwurst vor Amerika"
Start frei für Runde Zwei. In diesem Jahr geht es mit den eigenen Maschinen los. Lars und ich werden auf dem europäischen Festland bleiben. Abgesehen davon, dass natürlich der Weg das Ziel ist, geht es nach Portugal. Genauer gesagt zur “Letzten Bratwurst vor Amerika“, einem Bratwurststand an der südwestlichen Spitze von Portugal, dem “Cabo de São Vicente. Wie im letzten Jahr versuche ich eine lücklose Dokumentation der Ereignisse zu schaffen und hier einzustellen. Wir freuen uns also schon jetzt auf “Steve” und mal sehen was in diesem Jahr in Raum 230 so abgeht ( wer das nicht mehr genau versteht sollte evtl. noch mal die Berichte der USA Tour lesen ).
Neue Einträge werden immer unten angehängt, außerdem dieses Jahr mit Slideshow zu den Bildern.
Quick start with Flash ExternalInterface class
The ExternalInterface class allows you to communicate with the Flash wrapping container, which is usually the HTML page with JavaScript capeability. It allows you to send data from ActionsScript to JavaScript and vice versa.
The ExternalInterface class is implemented for nearly all current browsers. Please see the documentation for a detailed list of the supported browsers here.
All five attributes and methods are static, so you don’t need an instance of this class.
Make sure ExternalInterface is available
When using the ExternalInterface you should make sure it’s available. So please test the boolean value ExternalInterface.available:
if( ExternalInterface.available ){ ExternalInterface.call( .... ) }
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.