使用 WebOrb Ruby/Rails 创建 Flash 应用程序

发布于 2024-07-11 04:59:09 字数 360 浏览 7 评论 0原文

好吧,这似乎是一个愚蠢的问题(对于 Flash 开发人员来说),但我真的无法弄清楚这一点。 因此,我想为 Flash/Flex 应用程序创建某种 API,以便用户可以使用我的库来连接到我的 WebOrb Rails 服务器。

我对导轨部分没有任何问题,但闪光部分有点困难。

因此,我从示例中看到 Flex 正在使用 RemoteObject 来连接/检索数据。 问题是如何创建一个 Flash 文件来连接/检索来自 WebOrb 的数据(我找不到 RemoteObject - 是我应该制作的包含文件吗?)。

如果这是不可能的,我可以在 Flex 中创建某种库,可以在 Flash 中链接以获得相同的结果吗?

谢谢

Ok, this may seem like a stupid question (for Flash Developers) but I really can't figure this out.
So, I want to create somekind of an API for Flash/Flex applications so a user can use my lib in order to connect to my WebOrb Rails server.

I don't have any problem with the rails part but things get a little bit difficult with the flash part.

So, I saw from the example that Flex is using the RemoteObject to connect/retrieve data.
The question is how can I create a Flash file that connects/retrieves data from WebOrb (i couldn't find the RemoteObject - is an include I should make?).

If that is not possible, can I create some sort of library in Flex, that can be linked in Flash in order to achieve the same result?

Thx

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

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

发布评论

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

评论(1

原谅过去的我 2024-07-18 04:59:09

您正在寻找的很可能是 NetConnection Actionscript 类。 不过取决于您的 API 的格式。 如果只是基于 HTTP 的 XML,您也可以轻松地使用 URLLoader 类。

网络连接
链接文本

URLLoader
链接文字

What you're looking for is most likely the NetConnection Actionscript class. Depends on the format of your API though. If it's just XML over HTTP, you could easily just use the URLLoader class as well.

NetConnection
link text

URLLoader
link text

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