1 |
/path/to/flex/bin/swfdump /path/to/my.swf > swf_info.txt |
PS: Die Actionscript-Version kann man hier herausfinden, bzw. manuell
Grundsätzlich können SWFs streamen. Viele Preloader basieren darauf: Auf dem ersten Frame (der bereits verfügbar ist) dreht sich die Sanduhr, während der zweite Frame mit der Anwendung noch geladen wird.
So kann man zB mit LoaderMax ein SWF streamen, in dem ein Video und ein Sound auf der Zeitleiste liegen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
private var _loader:SWFLoader; private var _loadedSWF:MovieClip; private const MIN_PERCENTAGE_LOADED:Number = 0.2; // between 0 and 1 _loader = new SWFLoader( 'video_chaptera.swf', { auditSize:false, autoPlay:false, onProgress:_onLoaderProgress } ); _loader.load(); private function _onLoaderProgress(event : Event) : void { trace( 'loaded: ' + _loader.progress ); if( _loader.rawContent ) { // do not address it twice, for garbage collection: if ( _loadedSWF == null && _loader.progress >= MIN_PERCENTAGE_LOADED ) { _loadedSWF = _loader.rawContent as MovieClip; // maybe it was no MovieClip? if( _loadedSWF ) { // the volume was set to 0 by {autoPlay:false} var st:SoundTransform = _loadedSWF.soundTransform; st.volume = 1; _loadedSWF.soundTransform = st; addChild( _loadedSWF ); _loadedSWF.gotoAndPlay( 1 ); } } } } |
Leider kann man das Laden nicht pausieren:
It’s actually impossible to do a true pause/resume on a single loader in Flash. When you pause() an individual loader, it basically cancels it and then when you resume(), it starts over. You might be wondering why have pause/resume then at all, right? It’s primarily useful in a LoaderMax queue. Imagine you have 20 loaders in a LoaderMax queue and after 12 of them, you pause() while the 13th one is loading. It would technically just cancel that 13th one, but when you resume(), the 12 that had already loaded are still there – it resumes the queue at 13 and picks up from there.
Trotzdem nice: Streaming, und trotzdem Zugriff auf einzelne Frames.
Wichtig dabei:
7 Tage, 7 Posts, 1:
Wer auf die Schnelle einen SWF Parser sucht: www.fontimages.org.uk/cgi-bin/swfparse.cgi
Danke an Björn.
Wer swfobject in SiteKiosk nutzen will, sollte im Internet Explorer folgende Einstellung vornehmen:
Internet Optionen -> Allgemein -> Browserverlauf -> Einstellungen -> Temporäre Internetdateien -> Neuere Versionen der gespeicherten Seite suchen -> Bei jedem Zugriff auf die Webseite
Quelle: http://www.sitekiosk.net/en-US/CustomerSupportCenter/ArticleDetails.aspx?ArticleID=6861
HTH