在的Adobe Flash CS5针对Flash Player的10.3Flash、Adobe、Player

2023-09-09 21:47:31 作者:仙逆

有没有人用成功尝试Microphone.getEnhancedMicrophone()中的Adobe Flash CS5的方法?

Has anyone successfully tried using Microphone.getEnhancedMicrophone() method in Adobe Flash CS5?

我尝试了所有这些步骤;

I tried all these steps;

Step 1: Go to the locaiton C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0
Step 2: Create a new folder with the name "FP10.3"
Step 3: Copy the file and paste it in the following location:
            C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\FP10.3
Step4: Rename the swc name to "playerglobal.swc"

Step 5: Goto the following location C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\Players
Step 6: Create a copy of "FlashPlayer10_1.xml" and rename as "FlashPlayer10_3.xml"
Step 7: Open it in an editor and change according to below:
             <player id="FlashPlayer10.3" version="12" asversion="3">
   <name>Flash Player 10.3</name>
   <path builtin="true"/>
   <path platform="WIN">Device Central/adcdl.exe</path>
   <path platform="MAC">Device Central/adcdl</path>
   <playerDefinitionPath as2="$(UserConfig)/Classes/FP10;$(UserConfig)/Classes/FP9;$(UserConfi g)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/FP10.3/playerglobal.swc" />

Step 8: Close the flash application if launched and restart the flash application.
Step 9: If you promptly followed everything you will Flash player 10.3 in the target players from the publish settings and change your target to flash player 10.3.
Step 10: Now import two statements:

          import flash.media.Microphone;
          import flash.media.MicrophoneEnhancedMode;

然而,现在当我尝试调用函数Microphone.getEnhancedMicrophone()我得到一个错误 - 类型错误:错误#1006:getEnhancedMicrophone不是一个函数

google搜索了一下之后,我想通了,我需要使用编译它 -swf版本= 12 作为参数,但似乎与柔性的工作,我不能弄清楚如何将它与Flash CS5工作。

After googling a bit, I figured out that I need to compile it using -swf-version=12 as arguments, but that seems to work with flex, I cannot figure out how would it work with Flash CS5.

任何帮助将是AP preciated。

Any help would be appreciated.

感谢

推荐答案

我有一个类似的问题转移到Flash Professional中CS4与播放器10.1而回:Flash播放器10.1适用于Flash Professional CS4的playerglobal.swc?

i had a similar problem moving to Flash Professional CS4 with Player 10.1 a while back: Flash Player 10.1 for Flash Professional CS4 playerglobal.swc?

您编译使用测试影片你的计划吗?试试调试影片来代替。

are you compiling your program with "Test Movie"? try "Debug Movie" instead.

测试影片采用的是内置Flash播放器(或至少使用的话)是,令人遗憾的是,不可更新。你能确定它的版本通过运行带有测试影片如下:

Test Movie uses a built-in Flash player (or it at least use to do so) that is, regrettably, not updatable. you can determine it's version by running the following with Test Movie:

import flash.system.Capabilities;

trace(Capabilities.version);

调试影片将编译和驻留在 FlashCS5&GT调试播放器启动您的项目;玩家文件夹,因为该目标的球员是10.3您不应该收到了错误。

Debug Movie will compile and launch your project with the debug player residing in your FlashCS5 > Players folder and since that target player is 10.3 you should not receive anymore errors.