Flash Player 10.1的适用于Flash Professional CS4的playerglobal.swc?适用于、Player、Flash、swc

2023-09-08 14:42:02 作者:舊街沒有妳

Adob​​e发布了投影机,调试器和插件对Flash 10.1的昨天。我的Mac上我在的Adobe Flash CS4 /播放机/和Adobe Flash CS4 /播放器/调试安装分别独立播放器和调试器。

然而

,我想我需要下载globalplayer.swc为10.1,这样的Flash CS4 IDE是针对使用新的球员。

我已经搜查,但我只能找到这是在10.1测试版发布了globalplayer.swc,我不知道这是在我名为.swc应该用在最后10.1版本。

Adob​​e公司的网站并没有提及有关更换使用在CS4 10.1名为.swc任何东西,所以我不知道这是否是必要的。

我已经尝试创建动作脚本,包括flash.ui.Multitouch和flashx.textLayout也不可以找到。我不知道如何使Flash Professional中CS4使用在Flash Player 10.1将提供新的API

建议?

帧脚本中:

 进口flash.ui.Multitouch;

VAR myTextField的:文本字段=新的TextField();
myTextField.width = 200;

的addEventListener(Event.ENTER_FRAME,enterhandler);

功能enterhandler(五:事件):无效
    {
    VAR的支持:布尔= Multitouch.su​​pportsTouchEvents;
    开关(支持)
            {
            情况真:myTextField.text =触摸事件的支持;
                        打破;

            案例假:myTextField.text =触摸不支持的事件;
                        打破;

            默认:myTextField.text =未知;
            }

    的addChild(myTextField的);
    }
 

错误:(连续输入帧事件错误)

 的ReferenceError:错误#1065:变量flash.ui ::多点触控是没有定义。
    在multitouchtest_fla :: MainTimeline / enterhandler()
的ReferenceError:错误#1065:变量flash.ui ::多点触控是没有定义。
    在multitouchtest_fla :: MainTimeline / enterhandler()
的ReferenceError:错误#1065:变量flash.ui ::多点触控是没有定义。
    在multitouchtest_fla :: MainTimeline / enterhandler()
 

解决方案 安装Adobe flash player 10.1的问题

您可以得到官方的playerglobal.swc为Flash Player 10.1从Flex 4.1 SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download和Flex + 4

这是在框架/库/播放/ 10.1目录。

你也可以检查设备是否支持手势和触摸使用这些静: Multitouch.su​​pportsGestureEvents Multitouch.su​​pportsTouchEvents

Adobe released projector, debugger and plugin for Flash 10.1 yesterday. on my Mac i've installed the standalone player and debugger in Adobe Flash CS4/Players/ and Adobe Flash CS4/Players/Debug respectively.

however, i think i need to download the globalplayer.swc for 10.1 so that Flash CS4 IDE is directed to use the new players.

i've searched but i could only find the globalplayer.swc that was released during the 10.1 betas, and i'm not sure if that's the .swc i should use for the final 10.1 release.

Adobe's site doesn't mention anything about replacing the .swc to use 10.1 in CS4, so i'm not sure if it's necessary.

i've tried creating actionscripts to include flash.ui.Multitouch and flashx.textLayout and neither can be found. i have no idea how to make Flash Professional CS4 use the new APIs available in Flash Player 10.1

suggestions?

FRAME SCRIPT:

import flash.ui.Multitouch;

var myTextField:TextField = new TextField();
myTextField.width = 200;

addEventListener(Event.ENTER_FRAME, enterhandler);

function enterhandler(e:Event):void
    {
    var support:Boolean = Multitouch.supportsTouchEvents;
    switch  (support)
            { 
            case true:  myTextField.text = "Touch events supported"; 
                        break; 

            case false: myTextField.text = "Touch events not supported"; 
                        break; 

            default:    myTextField.text = "unknown"; 
            }

    addChild(myTextField);
    }

ERROR: (continuous enter frame event error)

ReferenceError: Error #1065: Variable flash.ui::Multitouch is not defined.
    at multitouchtest_fla::MainTimeline/enterhandler()
ReferenceError: Error #1065: Variable flash.ui::Multitouch is not defined.
    at multitouchtest_fla::MainTimeline/enterhandler()
ReferenceError: Error #1065: Variable flash.ui::Multitouch is not defined.
    at multitouchtest_fla::MainTimeline/enterhandler()

解决方案

You can get the official playerglobal.swc for Flash Player 10.1 from the Flex 4.1 SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

It's in the frameworks/libs/player/10.1 directory.

Also you can check if the device supports gestures and touch using these statics: Multitouch.supportsGestureEvents Multitouch.supportsTouchEvents