Targeting Flash Player 10.3 in Adobe Flash CS5

柔情痞子 提交于 2020-01-03 06:06:54

问题


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;

Yet, now when I try to call the function Microphone.getEnhancedMicrophone() I get an error - TypeError: Error #1006: getEnhancedMicrophone is not a function

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.

Any help would be appreciated.

Thanks


回答1:


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.

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);

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.



来源:https://stackoverflow.com/questions/7058073/targeting-flash-player-10-3-in-adobe-flash-cs5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!