Actionscript 3 Flash Player 10.1适用于Flash Professional CS4 playerglobal.swc?
Adobe昨天发布了Flash10.1的投影仪、调试器和插件。在我的Mac电脑上,我分别在Adobe Flash CS4/Players/和Adobe Flash CS4/Players/Debug中安装了独立播放器和调试器 然而,我认为我需要下载10.1版本的globalplayer.swc,以便flashcs4ide可以直接使用新的播放器 我已经搜索过了,但是我只能找到在10.1版betas中发布的globalplayer.swc,我不确定这是否是我应该在最终的10.1版中使用的.swc Adobe的网站没有提到任何关于在CS4中使用10.1替换.swc的内容,所以我不确定是否有必要 我尝试过创建包含flash.ui.multi-touch和flashx.textLayout的动作脚本,但都找不到。我不知道如何让Flash Professional CS4使用Flash Player 10.1中提供的新API 建议Actionscript 3 Flash Player 10.1适用于Flash Professional CS4 playerglobal.swc?,actionscript-3,flash,Actionscript 3,Flash,Adobe昨天发布了Flash10.1的投影仪、调试器和插件。在我的Mac电脑上,我分别在Adobe Flash CS4/Players/和Adobe Flash CS4/Players/Debug中安装了独立播放器和调试器 然而,我认为我需要下载10.1版本的globalplayer.swc,以便flashcs4ide可以直接使用新的播放器 我已经搜索过了,但是我只能找到在10.1版betas中发布的globalplayer.swc,我不确定这是否是我应该在最终的10.1版中使用的.swc A
框架脚本:
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);
}
错误:(连续输入帧事件错误)
不确定它是否是最新的,但它至少适用于10.1测试版:
您可以从Flex 4.1 SDK获得Flash Player 10.1的官方playerglobal.swc:
它位于frameworks/libs/player/10.1目录中 您还可以使用这些静态信息检查设备是否支持手势和触摸:
我的Flash CS4也有类似的问题,最近我发现了一个重要的链接
希望能有帮助……:) 嗨,詹姆斯。我已经下载了Flex 4.1 SDK,并将其10.1 globalplayer.swc放入/applications/adobe flash cs4/common/configuration/actionscript 3.0/FP10,新的API仍然无法识别。在测试Multitouch.SupportsTestureEvents时,我收到以下错误:ReferenceError:error#1065:Variable flash.ui::Multitouch未定义。“我还需要更改哪些设置,以便CS4识别10.1中的新API?该错误是运行时错误还是编译时错误?如果是运行时,那么您没有安装Flash Player 10.1。这是运行时错误,但我肯定安装了10.1。在applications/adobe flash cs4/Player中,我有投影仪和调试版本10.1.53.64。我刚刚替换了/players文件夹并重新启动了flash,看看它是否需要这个文件夹。测试电影仍然在运行,这让我相信它在某处调用不同的flash播放器。最后,我的高级actionscript 3.0设置仅在库路径下列出“$(AppConfig)/actionscript 3.0/libs”。对吗?这页上说你有什么版本?您可以使用Capabilities.version在应用程序中输出它。
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()