1.在Flash设计的时候,特别是一些WEB应用,通常会在FLASH中使用TextBox组件,如果这个时候你将FLASH的属性设置为透明,也就是在HTML代码中增加了如下代码:
<PARAM name="wmode" value="transparent">
这个时候需要注意在一些机器上会无法在你的文本框中输入中文(注:英文是可以的),该状况发生在Windows 98与Windows 2003的某些机器上,在Windows 2000中还未发现有该问题。
造成该问题的原因应该是Flash对双字节编码的支持存在问题。
解决方案:改为<PARAM name="wmode" value="window">
2.今天遇到一个问题,就是在FLEX或FLASH的文本框中输入中文时输入不进去。
在网上搜索了很久,最后发现,需要使用FLEX或FLASH发布时产生的那段JS才解决问题:代码如下
- <mce:script src="http://192.168.17.54/flex/Portals/_default/Flex/JS/AC_OETags.js" mce_src="http://192.168.17.54/flex/Portals/_default/Flex/JS/AC_OETags.js" language="javascript"></mce:script> <mce:script src="http://192.168.17.54/flex/Portals/_default/Flex/JS/history.js" mce_src="http://192.168.17.54/flex/Portals/_default/Flex/JS/history.js" language="javascript"></mce:script> <mce:script language="JavaScript" type="text/javascript"><!--
- // -----------------------------------------------------------------------------
- // Globals
- // Major version of Flash required
- var requiredMajorVersion = 9;
- // Minor version of Flash required
- var requiredMinorVersion = 0;
- // Minor version of Flash required
- var requiredRevision = 124;
- // -----------------------------------------------------------------------------
- // --></mce:script> <mce:script language="JavaScript" type="text/javascript"><!--
- // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
- var hasProductInstall = DetectFlashVer(6, 0, 65);
- // Version check based upon the values defined in globals
- var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
- if ( hasProductInstall && !hasRequestedVersion ) {
- // DO NOT MODIFY THE FOLLOWING FOUR LINES
- // Location visited after installation is complete if installation is required
- var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
- var MMredirectURL = window.location;
- document.title = document.title.slice(0, 47) + " - Flash Player Installation";
- var MMdoctitle = document.title;
- AC_FL_RunContent(
- "src", "playerProductInstall",
- "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
- "width", "676",
- "height", "436",
- "align", "middle",
- "id", "CanyaaSurvey",
- "quality", "high",
- "bgcolor", "#869ca7",
- "name", "CanyaaSurvey",
- "allowScriptAccess","sameDomain",
- "type", "application/x-shockwave-flash",
- "pluginspage", "http://www.adobe.com/go/getflashplayer"
- );
- } else if (hasRequestedVersion) {
- // if we've detected an acceptable version
- // embed the Flash Content SWF when all tests are passed
- AC_FL_RunContent(
- "src", "http://192.168.17.54/flex/Portals/_default/Flex/CanyaaSurvey",
- "width", "676",
- "height", "436",
- "align", "middle",
- //"id", "CanyaaSurvey",
- "quality", "high",
- "bgcolor", "#111111",
- "name", "CanyaaSurvey",
- "allowScriptAccess","sameDomain",
- "type", "application/x-shockwave-flash",
- "pluginspage", "http://www.adobe.com/go/getflashplayer",
- 'FlashVars','CampaignID=1&SD_Hash=633812590528741084& url=http://192.168.17.54/flex/Portals/_default/Flex/Survey.xml& SD_ToAdUrl=http://www.g.cn&SD_ToAdText=继续看广告&SD_NextOne=下一题& SD_CanNotNull=不能为空&SD_Submit=完成调查&SD_ThanksToJoin=谢谢您的参与!谢谢您的参与谢谢您的参与<br/>谢谢您的参与谢谢您的参与&SD_PostUrl=http://192.168.17.54 /webclock&SD_QuestionCount=已回答{0}还有{1}&SD_LimitedStr=还可输入{0}'
- );
- } else { // flash is too old or we can't detect the plugin
- var alternateContent = 'Alternate HTML content should be placed here. '
- + 'This content requires the Adobe Flash Player. '
- + '<a href="http://www.adobe.com/go/getflash" mce_href="http://www.adobe.com/go/getflash"></a>Get Flash</a>';
- document.write(alternateContent); // insert non-flash content
- }
- // --></mce:script>