易截截图软件、单文件、免安装、纯绿色、仅160KB

flex竖直折线图

<?xml version="1.0"?>
<!-- charts/VerticalLineChart.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection=new ArrayCollection([{Month: "Jan", Profit: 2000, Expenses: 1100}, {Month: "Feb", Profit: 1800, Expenses: 1055}, {Month: "Mar", Profit: 1200, Expenses: 800}, {Month: "Apr", Profit: 1400, Expenses: 900}, {Month: "May", Profit: 1400, Expenses: 1150}, {Month: "Jun", Profit: 1340, Expenses: 600}, {Month: "Jul", Profit: 1600, Expenses: 950}, {Month: "Aug", Profit: 1500, Expenses: 1140}, {Month: "Sep", Profit: 1800, Expenses: 1200}, {Month: "Oct", Profit: 2000, Expenses: 1280}, {Month: "Nov", Profit: 2400, Expenses: 1300}, {Month: "Dec", Profit: 1500, Expenses: 500}]);
]]-->
</mx:Script>
<mx:Panel title="Vertical Line Chart">
<mx:LineChart id="myChart"
dataProvider="{expenses}"
showDataTips="true">
<mx:verticalAxis>
<mx:CategoryAxis dataProvider="{expenses}"
categoryField="Month"/>
</mx:verticalAxis>
<mx:series>
<mx:LineSeries xField="Profit"
yField="Month"
displayName="Profit"
sortOnXField="false"/>
<mx:LineSeries xField="Expenses"
yField="Month"
displayName="Expenses"
sortOnXField="false"/>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
</mx:Application>



相关文档:

flex时序图示例

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

去掉Flex蓝色选中状态

 其实一般的情况下是不会用到这种情况的,一般在程序里,比如选中要填写的项目,都喜欢有一个选中的状态,但是现在我们来个反其道而行,如果我不想要这个状态该怎么办呢?
      参考了些资料,其实也简单,有好几种方法,但是发现了一个最有用的方法,首先我们在舞台上随意放几个TEXTINPUT ......

在flash中命名的mc实例在flex编辑环境下访问

在flex开发环境中编写as3代码是很方便的,借助flex开发环境代码都有自动提示功能,但是在做flash游戏的时候,在涉及到对话框的时候,我遇到一个很棘手的问题,就是在美工用flash cs布局好了的界面,我在界面上命名了实例(如textfield类型 var nameText:String),在导出这个类(guestDialog)的时候(这个类继承自MovieClip ......

教你7步实现flex自定义Event及参数传递

  Flex应用开发过程中如需要灵活的在不同组件(如A与B,父与子)之间响应事件,传递参数等功能时就会使用自定义事件(Event)机制,下面通过一个事例分七步,通过自定义Event和EventDispatcher两种机制实现事件交互和参数传递;
        事例描述: 有一个父亲“parentApp.mxml&rd ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号