问题标签 [actionscript-2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
flash - From AS2 to AS3 loading external images
I'm converting some Actionscript code from AS2 tp AS3, and I've eventually managed to get most of it to work again (it's allmost a totally different language, sharing just a little syntax similarity). One of the last things that still doesn't work, is the code for loading an external image.
Perhaps this has changed in AS3 but I really thought it was strange that to load an image you use loadVideo
, why not loadImage? (on the other hand a flash application is constantly called a flash video even when it's not used for animation at all). This doesn't work anymore, and what I've found is a pretty complex code that is said to replace this oneliner imageholder.loadVideo(url);
is this:
But this doesn't work.. What I am doing wrong, and is there a more suited function to load images in AS3?
flash - 当发布的电影具有 wmode="transparent" 时,MouseWheel 不起作用?
我遇到了一个已发布的 Flash 电影的错误。当我将电影嵌入到 HTML 页面(使用 SWFObject 2.1)中,并将 wmode 参数值设置为“透明”时,我所有基于 MouseWheel 事件的函数都停止工作。这部电影是基于AS2。有谁熟悉这个错误?
flash - 在 Flash (AS2) 中检测鼠标双击
有没有办法使用 ActionScript 2.0 检测鼠标双击按钮对象?
flash - Actionscript - 从左到右滚动图像
我制作了一个 Flash 库,可以从 xml 文件加载图像并将它们淡入淡出。但是我被要求让它从左到右淡入(即隐藏一点图像,同时慢慢地显示整个图像)。代码如下:
flash - getUrl 不打开窗口 AS2
如何在不打开新窗口的情况下从 ActionScript 2 调用 URL?我试过“getUrl”和“LoadVars”的各种方法。
actionscript-2 - 从另一个项目调用 ActionScript 2.0 事件
我有一个包含一个小库的 ActionScript 2.0 文件。这个库解析一个 XML 文件。我在 XML 的 onLoad 函数上分配了一个 onComplete 函数。
例如:
我想要的是,每当调用 OtherFunction(存在于 mysmalllib 中)时,我的主程序中的另一个函数就会被通知(toBeCalled)。我想这与调度有关,但我在 AS 方面做得不好。
谢谢
flash - 将 amfphp 与 Flash CS3 和 AS2 一起使用
全部,
我已经开始尝试使用 amfphp。我浏览了一些很棒的教程(尤其是 Lee Brimlow 在 gotoandlearn.com 上的教程)。
只要您使用的是 AS3,它就可以很好地工作,因为 AS3 包含内置的 NetConnection 类。
但是,我希望在一堆现有的 AS2 项目中使用 amfphp。
问题是 AS2 似乎没有 NetConnection 类,但 Adobe 的远程处理组件仅适用于 Flash 8,不适用于 CS3。
谷歌搜索出现了一堆建议,我将文件从我的 Flash 8 安装复制到 CS3,但我没有 Flash 8。
我卡住了吗?有没有办法解决这个问题?
非常感谢您提供任何建议或指导。
flash - 用于 Flash IDE 的类似 ReSharper 的插件?
有时需要在 AS2 中针对 Flash Player 8 编写代码,因此我们不得不在 Flash IDE 中编写代码。
任何可用于 Actionscript 的重构工具/插件?... 在 Flash IDE 内或外,这没问题,只要它是为 Flash Player 8、AS2 构建的。
actionscript-2 - Flash AS2 命令行编译器功能
尽管MTASC 命令行编译器可以将ActionScript类文件编译成SWF,但我需要通过命令行开关具体了解它的功能。
- 配置您的目标Flash Player版本, 6 / 7 / 8
-version n
: 指定 SWF 版本 : 6 以生成与 Player 6r89 兼容的 SWF 或 8 以访问 Flash8 功能。
- 配置电影的哪一帧,包含所有代码。
-frame f
: 将 AS2 类导出到 swf 的目标框架中。
- 但是如何配置电影的哪些帧,包含哪些 ActionScript 代码?
- 换句话说,将A类放入 Flash 电影的第1 帧,B 类放入第 2 帧,C 类放入 Flash 电影的第 3 帧。