【问题标题】:Flash Player 10.1 for Flash Professional CS4 playerglobal.swc?Flash Player 10.1 for Flash Professional CS4 playerglobal.swc?
【发布时间】:2011-03-02 14:30:51
【问题描述】:

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

但是,我认为我需要下载 10.1 的 globalplayer.swc,以便 Flash CS4 IDE 被引导使用新的播放器。

我已经搜索过,但我只能找到在 10.1 测试版期间发布的 globalplayer.swc,我不确定这是否是我应该用于最终 10.1 版本的 .swc。

Adobe 的网站没有提到任何关于替换 .swc 以在 CS4 中使用 10.1,所以我不确定是否有必要。

我尝试创建包含 flash.ui.Multitouch 和 flashx.textLayout 的动作脚本,但都找不到。我不知道如何让 Flash Professional CS4 使用 Flash Player 10.1 中提供的新 API

建议?


框架脚本:

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:(连续进帧事件错误)

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

【问题讨论】:

    标签: actionscript-3 flash


    【解决方案1】:

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

    它在 frameworks/libs/player/10.1 目录中。

    您还可以使用这些静态检查设备是否支持手势和触摸:
    Multitouch.supportsGestureEvents
    Multitouch.supportsTouchEvents

    【讨论】:

    • 嗨詹姆斯。我已经下载了 Flex 4.1 SDK,并将它的 10.1 globalplayer.swc 放入 /applications/adobe flash cs4/common/configuration/actionscript 3.0/FP10 并且仍然无法识别新的 API。在测试 Multitouch.supportsGestureEvents 时,我收到此错误:ReferenceError: Error #1065: Variable flash.ui::Multitouch is not defined." 我需要更改哪些其他设置才能使 CS4 识别 10.1 中的新 API?跨度>
    • 该错误是运行时错误还是编译时错误?如果它是运行时,那么您没有安装 Flash Player 10.1。
    • 这是一个运行时错误,但我肯定有 10.1。在应用程序/adobe flash cs4/播放器中,我有投影仪和调试版本 10.1.53.64。我只是替换了 /players 文件夹并重新启动了 flash 以查看它是否需要此文件夹。测试电影仍在运行,这让我相信它在某个地方调用了不同的 Flash 播放器。最后,我的高级 actionscript 3.0 设置仅在库路径下列出“$(AppConfig)/ActionScript 3.0/libs”。对吗?
    • 这个页面说你有什么版本? adobe.com/software/flash/about
    • 您可以使用 Capabilities.version 将其输出到应用程序中。
    【解决方案2】:

    不确定它是否是最新的,但至少适用于 10.1 beta: http://labs.adobe.com/downloads/flashplayer10.html

    【讨论】:

      【解决方案3】:

      我的 Flash CS4 也遇到过类似的问题,最近我发现了一个重要的链接可以查看 http://swfhead.com/blog/?p=709 http://swfhead.com/blog/?p=133

      希望对您有所帮助... :)

      【讨论】:

        猜你喜欢
        • 2012-07-04
        • 2011-05-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-02-11
        • 2011-05-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多