<bdo id='ylkgw'></bdo><ul id='ylkgw'></ul>
  • <i id='ylkgw'><tr id='ylkgw'><dt id='ylkgw'><q id='ylkgw'><span id='ylkgw'><b id='ylkgw'><form id='ylkgw'><ins id='ylkgw'></ins><ul id='ylkgw'></ul><sub id='ylkgw'></sub></form><legend id='ylkgw'></legend><bdo id='ylkgw'><pre id='ylkgw'><center id='ylkgw'></center></pre></bdo></b><th id='ylkgw'></th></span></q></dt></tr></i><div id='ylkgw'><tfoot id='ylkgw'></tfoot><dl id='ylkgw'><fieldset id='ylkgw'></fieldset></dl></div>
    <tfoot id='ylkgw'></tfoot>

      1. <small id='ylkgw'></small><noframes id='ylkgw'>

        <legend id='ylkgw'><style id='ylkgw'><dir id='ylkgw'><q id='ylkgw'></q></dir></style></legend>

        c++ 和 actionscript 3 之间的通信

        时间:2023-08-03
            <tbody id='J32T4'></tbody>
          <legend id='J32T4'><style id='J32T4'><dir id='J32T4'><q id='J32T4'></q></dir></style></legend>

          <small id='J32T4'></small><noframes id='J32T4'>

            <i id='J32T4'><tr id='J32T4'><dt id='J32T4'><q id='J32T4'><span id='J32T4'><b id='J32T4'><form id='J32T4'><ins id='J32T4'></ins><ul id='J32T4'></ul><sub id='J32T4'></sub></form><legend id='J32T4'></legend><bdo id='J32T4'><pre id='J32T4'><center id='J32T4'></center></pre></bdo></b><th id='J32T4'></th></span></q></dt></tr></i><div id='J32T4'><tfoot id='J32T4'></tfoot><dl id='J32T4'><fieldset id='J32T4'></fieldset></dl></div>
          1. <tfoot id='J32T4'></tfoot>

                <bdo id='J32T4'></bdo><ul id='J32T4'></ul>
                • 本文介绍了c++ 和 actionscript 3 之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  是否可以使用任何 IPC 机制从 Adob​​e Flash 动作脚本调用 c++ api?有什么好的例子吗?

                  Is it possible to use any IPC mechanism for calling a c++ api from Adobe Flash actionscript? Are there any good examples?

                  更新:我现在主要希望它用于桌面应用程序,即 Adob​​e 的/或任何其他人的桌面运行时

                  Update: I primarily want it for desktop apps now i.e Adobe's/or anyuone else's desktop runtimes

                  推荐答案

                  不是来自 Flash Player,因为它很可能会违反其安全模型.您可以从 Tamarin VM 调用 C++,例如 mod-actionscript 正在执行.一种选择是将您的调用传递到 AS3 服务器,在那里调用一些 C++ 函数并将结果发回.另一种选择是使用 alchemy 将 C++ 代码交叉编译到 AVM2.但是,如果您想调用 C++ 来访问客户端计算机上 Flash Player 无法提供的功能(文件系统访问、UDP 或其他),那就没有办法了.

                  Not from the flash player, as it would very likely violate its security model. You can call C++ from the Tamarin VM, which for example mod-actionscript is doing. An option would be to pass your calls to an AS3-server, call some C++ functions there and send back the result. Another option is to cross-compile the C++ code to AVM2 using alchemy. But if you want to call C++ to access features on the client machine not available from the flash player (file system access, UDP or whatever), then there's no way.


                  好的,我想有以下选项:

                  edit:
                  Ok, I suppose there are the following options:

                  • 查看flash.accessibility 打包并仅使用 AS3 解决
                  • 创建一个后台运行的C++守护进程,可以和flash through进行双向通信
                    • 具有自定义协议的本地套接字(您将在守护进程中绑定一个端口,Flash 客户端将连接到它)
                    • 一个LocalConnection.从 AS3 的角度来看,这看起来好一点,但需要在 C++ 方面进行一些黑客攻击,因为您需要掌握连接并实现协议(指针 这里)
                    • have a look at the flash.accessibility package and solve it with AS3 only
                    • create a C++ daemon running in the background, which can have bidirectional communication with flash through
                      • a local socket (you'd bind a port in the daemon and the flash client would connect to it) with a custom protocol
                      • a LocalConnection. This looks a little better from the AS3 perspective, but requires a little hacking on the C++ side, since you need to get hold of the connection and implement the protocol (pointers here)

                      这篇关于c++ 和 actionscript 3 之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 C++ 中异步执行 curl_multi_perform()? 下一篇:Visual Studio 代码,#include <stdio.h>说“向设置添

                  相关文章

                  最新文章

                      <small id='c5hJ7'></small><noframes id='c5hJ7'>

                      <i id='c5hJ7'><tr id='c5hJ7'><dt id='c5hJ7'><q id='c5hJ7'><span id='c5hJ7'><b id='c5hJ7'><form id='c5hJ7'><ins id='c5hJ7'></ins><ul id='c5hJ7'></ul><sub id='c5hJ7'></sub></form><legend id='c5hJ7'></legend><bdo id='c5hJ7'><pre id='c5hJ7'><center id='c5hJ7'></center></pre></bdo></b><th id='c5hJ7'></th></span></q></dt></tr></i><div id='c5hJ7'><tfoot id='c5hJ7'></tfoot><dl id='c5hJ7'><fieldset id='c5hJ7'></fieldset></dl></div>
                      <legend id='c5hJ7'><style id='c5hJ7'><dir id='c5hJ7'><q id='c5hJ7'></q></dir></style></legend>
                    1. <tfoot id='c5hJ7'></tfoot>
                      • <bdo id='c5hJ7'></bdo><ul id='c5hJ7'></ul>