将flex的应用程序嵌入jsp的源代码

使用object标签

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     id="index" width="1000" height="600"
     codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="src" value="***.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#869ca7" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="wmode" value="window"/>
    <embed src="***.swf" quality="high" bgcolor="#869ca7"
      width="1000" height="600" name="index" align="middle"
      play="true"
      loop="false"
      quality="high"        
      allowScriptAccess="sameDomain"    
      allowFullScreen="true"
      type="application/x-shockwave-flash"
      wmode="window"
      pluginspage="http://www.adobe.com/go/getflashplayer">
    </embed>
  </object>

注意:在此代码代码中一定要将wmode的value设为window,否则,用flex编写网站的过程中,输入框中不能直接输入中文,而是直接显示在html中。

你可能感兴趣的:(html,jsp,object,Flex)