构建示例 Flex mxml 时出现构建错误
我正在使用 Flex 3.3 SDK(不是 Flex 构建器,因为我使用的是 64 位 Linux),而且似乎我什至无法构建简单的示例文件。 http://livedocs.adobe 上的饼图示例.com/flex/3/html/help.html?content=charts_types_09.html 拒绝构建,给我:
生成的动作脚本如下:
package
{
import flash.accessibility.*;
import flash.debugger.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
import mx.binding.*;
import mx.charts.PieChart;
import mx.core.Application;
import mx.core.ClassFactory;
import mx.core.DeferredInstanceFromClass;
import mx.core.DeferredInstanceFromFunction;
import mx.core.IDeferredInstance;
import mx.core.IFactory;
import mx.core.IPropertyChangeNotifier;
import mx.core.mx_internal;
import mx.styles.*;
import mx.containers.Panel;
import mx.charts.Legend;
import mx.core.Application;
import mx.charts.series.PieSeries;
public class piechartTest extends mx.core.Application
{
public function piechartTest() {}
[Bindable]
public var myChart : mx.charts.PieChart;
mx_internal var _bindings : Array;
mx_internal var _watchers : Array;
mx_internal var _bindingsByDestination : Object;
mx_internal var _bindingsBeginWithWord : Object;
include "/home/mathias/Stage/hadoop_testing/flex_test/piechartTest.mxml:4,15";
}}
我绝对喜欢一个简单的解决方案来解决这个问题,并且我'我确信存在,但我似乎找不到它(部分原因是每个解释似乎都是为 Flex Builder 编写的)。
I'm using the Flex 3.3 SDK (not Flex builder, as I'm on 64-bit Linux), and it seems I can't even build simple example files.
The Pie Chart example on http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_09.html refuses to build, giving me:
The generated actionScript is as follows:
package
{
import flash.accessibility.*;
import flash.debugger.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
import mx.binding.*;
import mx.charts.PieChart;
import mx.core.Application;
import mx.core.ClassFactory;
import mx.core.DeferredInstanceFromClass;
import mx.core.DeferredInstanceFromFunction;
import mx.core.IDeferredInstance;
import mx.core.IFactory;
import mx.core.IPropertyChangeNotifier;
import mx.core.mx_internal;
import mx.styles.*;
import mx.containers.Panel;
import mx.charts.Legend;
import mx.core.Application;
import mx.charts.series.PieSeries;
public class piechartTest extends mx.core.Application
{
public function piechartTest() {}
[Bindable]
public var myChart : mx.charts.PieChart;
mx_internal var _bindings : Array;
mx_internal var _watchers : Array;
mx_internal var _bindingsByDestination : Object;
mx_internal var _bindingsBeginWithWord : Object;
include "/home/mathias/Stage/hadoop_testing/flex_test/piechartTest.mxml:4,15";
}}
I would absolutely love a simple solution to this problem, and I'm sure one exists, I just can't seem to find it (partially because every explanation seems to have been written for Flex Builder).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
啊哈。 显然,解决方案是:http://pragmaticflex。 wordpress.com/2008/02/20/charts-with-the-flex-sdk/
Aha. The solution, apparently: http://pragmaticflex.wordpress.com/2008/02/20/charts-with-the-flex-sdk/
只需确保您已在 3.3 安装中安装了数据可视化包。 图表类就在那里,奇怪的是这个包与 sdk 发行版的其余部分是分开的。
谷歌查找(但它没有在 adobe confluence 上列出)
希望有帮助
just make sure you have installed the datavisualization package to you 3.3 installation. The charts classes is in there and strangelly this package is separated of the rest of the sdk distribution.
google it to find (but it is NOT listed on adobe confluence)
hope it helps