The Adobe docs (I can't find which) state that Flash can read Shared Objects (.SOL files?) off a server. This could be an interesting way to store data and retrieve it client-side. Any ideas on how to do this?
Adobe文档(我找不到哪个)表明Flash可以从服务器读取共享对象(.SOL文件?)。这可能是一种存储数据并在客户端检索数据的有趣方式。关于如何做到这一点的任何想法?
1 个解决方案
#1
Firstly, .SOL files and LocalSharedObject are purely, as their name implies, local datas. They are stored on the client, not on the server, and could be compared to cookies, or save files. But they are not server-side.
首先,正如其名称所暗示的那样,.SOL文件和LocalSharedObject纯粹是本地数据。它们存储在客户端上,而不是存储在服务器上,可以与cookie进行比较,也可以保存文件。但它们不是服务器端的。
If you want to store data on the server and retrieve it client-side, you have a lot of techniques, depending on what you want/can install on your server.
如果要在服务器上存储数据并在客户端检索数据,则需要使用许多技术,具体取决于您希望/可以在服务器上安装的内容。
The most obvious one certainly is using a web-service in the language of your choice, and access it via your Flash application.
最明显的一个当然是使用您选择的语言的Web服务,并通过您的Flash应用程序访问它。
You can also use ActionScript Remoting capabilities to call server-side methods to store and retrieve objects. You have to find the proper library for your language. AMFPHP is the reference for php, I know some library also exists for .NET and Java. Here is an example using php
您还可以使用ActionScript Remoting功能调用服务器端方法来存储和检索对象。您必须为您的语言找到合适的库。 AMFPHP是php的参考,我知道.NET和Java也存在一些库。这是一个使用php的例子
Finally, you can use Flash Media Server which is a proprietary Adobe technology. I don't have much experience with it, but you should be able to find useful ressources here
最后,您可以使用Flash Media Server,这是一项专有的Adobe技术。我没有太多的经验,但你应该能够在这里找到有用的资源
#1
Firstly, .SOL files and LocalSharedObject are purely, as their name implies, local datas. They are stored on the client, not on the server, and could be compared to cookies, or save files. But they are not server-side.
首先,正如其名称所暗示的那样,.SOL文件和LocalSharedObject纯粹是本地数据。它们存储在客户端上,而不是存储在服务器上,可以与cookie进行比较,也可以保存文件。但它们不是服务器端的。
If you want to store data on the server and retrieve it client-side, you have a lot of techniques, depending on what you want/can install on your server.
如果要在服务器上存储数据并在客户端检索数据,则需要使用许多技术,具体取决于您希望/可以在服务器上安装的内容。
The most obvious one certainly is using a web-service in the language of your choice, and access it via your Flash application.
最明显的一个当然是使用您选择的语言的Web服务,并通过您的Flash应用程序访问它。
You can also use ActionScript Remoting capabilities to call server-side methods to store and retrieve objects. You have to find the proper library for your language. AMFPHP is the reference for php, I know some library also exists for .NET and Java. Here is an example using php
您还可以使用ActionScript Remoting功能调用服务器端方法来存储和检索对象。您必须为您的语言找到合适的库。 AMFPHP是php的参考,我知道.NET和Java也存在一些库。这是一个使用php的例子
Finally, you can use Flash Media Server which is a proprietary Adobe technology. I don't have much experience with it, but you should be able to find useful ressources here
最后,您可以使用Flash Media Server,这是一项专有的Adobe技术。我没有太多的经验,但你应该能够在这里找到有用的资源