简体   繁体   English

如何使用Adobe Flex 4.6在Android应用程序中创建雷达图表

[英]How to create radar chart in Android app using Adobe Flex 4.6

A solution that works both on Android mobile application using Adobe Flex and desktop application using Adobe AIR is preferred. 使用Adobe Flex的Android移动应用程序和使用Adobe AIR的桌面应用程序都可以使用的解决方案是首选。 I guess this should be a basic feature, without extended support from third party library. 我想这应该是一个基本功能,没有第三方库的扩展支持。 But don't have a clue after searching on Internet. 但是在互联网上搜索后没有任何线索。

The Kap Lab components (found on Adobe's Flex / Extend : Related products page) seem not working on Android mobile device. Kap Lab组件(可在Adobe的Flex / Extend:相关产品页面上找到)似乎无法在Android移动设备上运行。 This is the error message I received when running it on Android mobile device: 这是我在Android移动设备上运行时收到的错误消息:

1046 : Type was not found or was not a compile-time constant: [mx.controls.treeClasses]::ITreeDataDescriptor.

My desktop development environment is: 我的桌面开发环境是:

(1) Adobe Flash Builder 4.7 (1)Adobe Flash Builder 4.7

(2) Adobe Flex SDK 4.6 (2)Adobe Flex SDK 4.6

(3) ActionScript 3.0 (3)ActionScript 3.0

Any hint is appreciated :D 任何提示都表示赞赏:D

Flex mobile sdk is optimized and compressed for mobile, so it misses some classes used by Kep Lab, or even the Flex charts. Flex mobile sdk针对移动设备进行了优化和压缩,因此它错过了Kep Lab使用的某些类,甚至是Flex图表。 You should write the charts from bottom up. 你应该从下往上写图表。 Good news, if it will work on mobile, it will work on desktop as well. 好消息是,如果它可以在移动设备上运行,它也可以在桌面上运行。 You can of course try to import the missing classes from the open source sdk, but it would be a big mess, and it was not a coincidence tat they've left them out. 你当然可以尝试从开源sdk导入缺少的类,但这将是一个很大的混乱,并不是巧合,他们已经把它们排除在外。

In your project references, make sure you have mx.swc. 在项目引用中,请确保您具有mx.swc。 The mobile profile does not include the mx components by default. 默认情况下,移动配置文件不包含mx组件。 this needs to be added separately. 这需要单独添加。 You can do so by going into Flex Build Path, Library Path, clicking on add SWC and choosing mx.swc from your sdk frameworks folder. 您可以进入Flex Build Path,Library Path,单击添加SWC并从sdk frameworks文件夹中选择mx.swc。

See migrating from Flex 3.6 to 4.6 请参阅从Flex 3.6迁移到4.6

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

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