问题标签 [air2]

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.

0 投票
1 回答
719 浏览

apache-flex - AIR:富文本编辑器中的标记

有没有办法(可能非常复杂)从 AIR2 中的 htmlText 属性在文本区域中显示图像?

PS 我知道 AIR 会忽略 HTML 内容中的 img 标签,因为它可以防止可能的网络钓鱼攻击。

UPD 已解决:我使用了文本布局框架

0 投票
1 回答
1003 浏览

actionscript-3 - 需要绕过错误 #2047:违反安全沙箱:AS3 加载外部视频 swf

又是我……我需要在 AIR2 应用程序上转到第 2 帧,但沙盒交易让我发疯了……

这就是我加载 MovieClikp 的方式:

这是我在加载电影的最后一帧中的动作脚本:

我在使用 AS2 时从来没有遇到过这个问题,而且随着 Adob​​e 所做的每一次新更新,它都会变得更糟。

对最后一条评论感到抱歉,但我已经尝试了其他帖子中的所有解决方案,但我无法让它发挥作用。

0 投票
1 回答
46 浏览

actionscript-3 - ActionScript, possible race condition on mouse event

I'm at a bit of a loss here. I have an issue that I think may be due to mouse events taking precedence. I have a function f being invoked on mouse clicks - f does some work, then invokes another function g. Is it even possible that f runs, then another click happens - invoking f again - and then g is executed?

If my phrasing is hard to understand, I'll try to show what I think may be happening:

I can say for certain the issue only arises (out of ~50 slow and ~50 quick double-clicks) when clicking twice in very quick succession (and not always even then). I realize my figure may confuse more than it clarifies, but I'm not sure how else to communicate my thoughts. Any input is greatly appreciated!