2010-08-11 5 views
0
<script type="text/javascript" src="swfobject/swfobject.js"></script> 

<script language="javascript" > 
swfobject.registerObject("myId", "10.0.0"); 


function execute(){ 

return a; 

} 

</script> 



<body style="margin:0"> 


<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="500"> 

<param name="movie" value="helpdeskApp_three.swf" /> 
<param name="allowScriptAccess" value="always" /> 
<!--[if !IE]>--> 
<object type="application/x-shockwave-flash" data="helpdeskApp_three.swf" width="800" height="500" > 
<!--<![endif]--> 
<div> 
<h1>Alternative content</h1> 
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> 
</div> 
<!--[if !IE]>--> 
</object> 
<!--<![endif]--> 
</object> 

J'ai ce qui est basé sur cette question: Getting current URL in Flash from JavaScript using ExternalInterface and IEJe suis incapable d'obtenir ExternalInterface.call de travailler dans IE7

Cependant, cela ne travaille dans Firefox et IE.

Si j'intégrer mon flash dans le navigateur comme ceci:

<embed src="helpdeskApp_three.swf" id="flash" quality="high" scale="exactfit" width="800" height="500" name="movie" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> 

Cela fonctionne dans Firefox, mais pas à savoir.

Quelle est la bonne façon d'intégrer mon film Flash pour qu'il fonctionne dans tous les navigateurs?

Merci

Répondre

1

Extrait de: http://code.google.com/p/swfobject/wiki/documentation#STEP_1:_Embed_both_Flash_content_and_alternative_content_using_s

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"> 
    <param name="movie" value="myContent.swf" /> 
    <!--[if !IE]>--> 
    <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420"> 
    <!--<![endif]--> 
     <p>Alternative content</p> 
    <!--[if !IE]>--> 
    </object> 
    <!--<![endif]--> 
    </object> 
Questions connexes