如何让基于 sqlite 数据的耀斑可视化 (swf) 在 Adob​​e AIR 桌面应用程序中工作?

发布于 2024-07-20 05:28:57 字数 724 浏览 5 评论 0原文

我一直未能成功地尝试找到如何让基于 sqlite 数据的耀斑可视化 (swf) 在 Adob​​e AIR 桌面应用程序中运行的示例。

这是我所拥有的:

  1. ProjectA:基于 教程 在 FlexBuilder 中完成的耀斑可视化示例;
  2. ProjectB:一个桌面 AIR 应用程序,能够根据 教程

这是我想要的:

  1. 通过 flash.data.SQLResult 从 sqlite db 查询数据(这不会出现在用于导入的 ProjectA 命名空间中 - 无法在没有 AIR 的情况下尝试基于 sqlite 的可视化)
  2. 将结果集转换为flare.data。数据集并使用flare创建可视化
  3. 在windowedApplication中显示可视化(我不知道如何添加2中的可视化结果。)
  4. 控制可视化(一旦前三点起作用就会到达那里)

尝试过谷歌搜索和adobeairtutorials但无法找到任何有用的东西。

I've been unsuccessful in trying to find an example how to get a sqlite data based flare visualization (swf) to run in Adobe AIR desktop application.

Here is what I have:

  1. ProjectA: a flare visualization sample done in FlexBuilder based on a tutorial;
  2. ProjectB: a desktop AIR app that is able to retrieve data from sqlite based on a tutorial.

Here is what I would like to have:

  1. query data from sqlite db via flash.data.SQLResult (this doesn't appear in ProjectA namespace for importing - can't try sqlite based visualization without AIR)
  2. transform the resultset into flare.data.DataSet and create the visualization with flare
  3. show the visualization in the windowedApplication (I don't know how to add visualization result from 2.)
  4. control the visualization (will get there once the first three points will work)

Tried googling and adobeairtutorials but was unable to find anything useful.

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

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

发布评论

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

评论(3

無處可尋 2024-07-27 05:28:57

You can also check out the article Using Flare Visualization with Flex

不交电费瞎发啥光 2024-07-27 05:28:57

在注意到flare.vis.Visualization对象与我的主窗口断开连接后,我的问题得到了解决。

以下是我解决问题的方法:

mx:Canvas id="container" // "main window" definition in app.mxml file

<mx:Script>
...
vis = new Visualization(data);
container.stage.addChild(vis); // make sure that you add the vis object

现在,我开始讨论第四点 - 控制可视化:)

I got my problem resolved after noticing that the flare.vis.Visualization object was disconnected from my main window.

Here is how I resolved the problem:

mx:Canvas id="container" // "main window" definition in app.mxml file

<mx:Script>
...
vis = new Visualization(data);
container.stage.addChild(vis); // make sure that you add the vis object

Now, I'm off to the 4. point - controlling the visualization :)

渔村楼浪 2024-07-27 05:28:57

这是一个可能有助于此过程的博客文章:
http://www.boxshapeworld.com/blog/post/ SQLite-Flare-and-AIR.aspx

Here's a blog entry that might help with this process:
http://www.boxshapedworld.com/blog/post/SQLite-Flare-and-AIR.aspx

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