2010年7月2日 星期五

SWF在瀏覽器中無法中文輸入問題

在SWF embed code中有一個wmode="Window" 如果wmode不是Window就會造成無法輸入中文。

參數說明:
Window
plays the application in its own rectangular window on a web page. Window indicates that the Flash application has no interaction with HTML layers and is always the topmost item.


Opaque
makes the application hide everything behind it on the page.


Transparent
makes the background of the HTML page show through all the transparent portions of the application and can slow animation performance.

Embed code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="${application}" width="${width}" height="${height}"
codebase=http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab
>
<param name="movie" value="${swf}.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="wmode" value="transparent" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="Window">
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage=http://www.adobe.com/go/getflashplayer
wmode="Window"
>
</embed>
</object>

沒有留言:

張貼留言