简体   繁体   English

Adobe Air多设备通信

[英]adobe air multi device communication

How does adobe air applications (flash as3) talk to each other? Adobe Air应用程序(Flash AS3)如何相互通信?

For example im building an 1 server app that display data to the LCD Screen in realtime with 4 slave controller app that can update the data on the server. 例如,使用4个从控制器应用程序构建可实时更新数据到LCD屏幕的1个服务器应用程序,该应用程序可更新服务器上的数据。

One thing that comes in mind is building a mysql database and using php in each client via web browser, and then the server app continuously refreshes for new data. 要想到的一件事是建立一个mysql数据库,并通过Web浏览器在每个客户端中使用php,然后服务器应用程序不断刷新以获取新数据。

But setting up a web server (WAMP) is a tedious task for my client to do. 但是为我的客户设置Web服务器(WAMP)是一项繁琐的任务。 I wanted to give them 1 file, presumably adobe air installer, and then they can install and fired the app. 我想给他们1个文件,大概是adobe air安装程序,然后他们可以安装并启动该应用程序。 or maybe if they want to have slave controller, i can give the 1 more file to be installed in each device. 或者,如果他们想拥有从属控制器,我可以再给每个设备安装1个文件。

For that i need a air to air app that communicate to each other, with the server app handling the data. 为此,我需要一个相互通信的空中应用程序,并由服务器应用程序处理数据。 So the questions are: 所以问题是:

  • Does air have its own database handler? air是否有自己的数据库处理程序?
  • How can i connect each controller to the server. 我如何将每个控制器连接到服务器。
  1. Yes, AIR does have SQL engine . 是的,AIR 确实具有SQL引擎
  2. You can use sockets to transfer data between local AIR apps and the server. 您可以使用套接字在本地AIR应用程序和服务器之间传输数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM