Flash SWF 横幅:clickTAG 出现问题

发布于 2024-10-07 21:08:34 字数 597 浏览 0 评论 0原文

我们创建了一个横幅,单击时会加载游戏。横幅中的第一个屏幕有一个链接按钮(带有来自 loaderInfo.parameters.clickTAG 的 url)。这个点击有效。一旦你开始(加载)游戏(从domainB),整个横幅就可以点击了。当单击“真实”站点(domainA)上的横幅时,此单击不起作用。但是,如果我将 main.swf 放在我的替代站点(domainX)上,它就可以工作。我已经在我的替代站点上尝试了正常的 html 嵌入和 SwfObject。相同的结果。有用。我们在我们的网站上使用跨域(使用 *)。奇怪的是第一次点击就起作用了。 clickTag 存储在 main.swf 中的单例中,并在 game.swf 中用于以后的点击。

ma​​in.swf @domainA(从@domainB加载内容)//不起作用

game.swf @domainB

assets.swf @domainB


ma​​in.swf @domainX(从@domainB加载内容)//工作正常

We have created a banner that loads a game when clicked. The first screen in the banner has a link button (with url from loaderInfo.parameters.clickTAG). This click works. Once you start (load) the game (from domainB) the whole banner is clickable. When clicking the banner on the "real" site (domainA) this click does not work. However if I put main.swf on my alternative site (domainX) it works. I have tried the normal html embed and SwfObject on my alternative site. Same result. It works. We are using crossdomain (using *) on our site. The strange thing is that the first click works. The clickTag is stored in a Singleton in main.swf and used in game.swf for the later clicks.

main.swf @domainA (loading content from @domainB) // does not work

game.swf @domainB

assets.swf @domainB


main.swf @domainX (loading content from @domainB) // works fine

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事与诗 2024-10-14 21:08:34

我们发现了问题。 clickTAG 存储在 main.swf (@domainA) 中的单例中,当我们尝试在 game.swf (@domainB) 中访问它时,无法检索它。有点合乎逻辑。解决方案是从 game.swf 中查找 stage.loaderInfo.parameters。那行得通。汤姆是否有可能使类在不同的域上“通信”?

We found the problem. The clickTAG was stored to a Singleton in main.swf (@domainA) and when we tried to access it in game.swf (@domainB) it could not be retrieved. Kind of logical. The solution was to look for stage.loaderInfo.parameters from the game.swf as well. That works. Is it possible tom make classes "communicate" on different domains?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文