Search code examples
swfobjectopenlaszlolzx

Is it possible to play an swf8 resource in swf10 environment in OpenLaszlo?


I know that its not possible to play a swf 8 resource in swf10. But is there any workaround for this? I want to change the frame value of one resource by using

this.viewname.setAttribute('frame',3).

Any ideas?


Solution

  • If your SWF file is a pure SWF movie then it has an AVM codec which you can't play in Flash 9+, but you can re-encode it to AVM2 which will work in Flash 9+ with a video conversion tool like FFMPEG (http://ffmpeg.org/) with a command similar to the following:

    ffmpeg -i mysfw8file.swf -f avm2 myswf10file.swf
    

    (This assumes that you have a recent version of FFMPEG that supports the AVM2 codec).

    Note: That if your SWF8 is an application then it will have unpredictable results since OpenLaszlo views were never intended to load SWF applications, only SWF movies.