+ Start a Discussion

Using <apex:flash> with Static Resources

Hi all - 


We have a Flash movie "package" made up of an SWF file, an FLA file with logic, an XML file with paths to three images, and three image JPG files. Together these display a simple three image slide show. This works fine outside of Salesforce, both locally and embedded into another site that uses the SWFObject player. I zipped these files together, uploaded them into Static resources, and then referenced the SWF file in my VF page like so:


 <apex:flash src="{!URLFOR($Resource.Imlogistics, 'imlogistics_flash_home.swf')}" height="270" width="55%" />


A correct size box appears on my page with the Next/Prev arrows that are in our SWF file but no slides. Any ideas? Because they are all in the same directory, the image file paths within the XML are just the file name. Is there something else I need to be doing?


Were you able to figure this out?  Is it possible?  I am having the same issue.  Thanks. 


Last year (2010),  was able to implement a flash video packaged as you describe from static resource, but I could not use the built-in APEX "flash" component. I had to code use HTML javascript and object similar to the following. 


<div class="block-flash">
            <script type="text/javascript"> 
            MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');
AC_FL_RunContent( 'codebase','https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','884','height','204','id','FLVPlayer','src','/resource/1273722741000/UOPTrainingFlash/uop_header','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=training-header-v02&autoPlay=true&autoRewind=false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','https://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/resource/1273722741000/MyFlash/header' ); //end AC code
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="884" height="204" id="FLVPlayer">
                    <param name="movie" value="{!URLFOR($Resource.MyFlash,'/header.swf')}" />
                    <param name="salign" value="lt" />
                    <param name="quality" value="high" />
                    <param name="scale" value="noscale" />
                    <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=header-v02&autoPlay=true&autoRewind=false" />
                    <embed src="{!URLFOR($Resource.MyFlash,'/header.swf')}" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=training-header-v02&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="884" height="204" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="https://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />