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

flex图表淡入淡出效果示例

<?xml version="1.0"?>
<!-- charts/StandardEffectTriggers.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
import mx.effects.Fade;
[Bindable]
public var expenses:ArrayCollection=new ArrayCollection([{Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450}, {Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600}, {Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300}]);
]]-->
</mx:Script>
<!-- Define the effects -->
<mx:Parallel id="showEffects">
<mx:WipeRight duration="2000"/>
<mx:Fade alphafrom="0"
alphaTo="1"
duration="4000"/>
</mx:Parallel>
<mx:Parallel id="hideEffects">
<mx:Fade alphafrom="1"
alphaTo="0"
duration="2500"/>
<mx:WipeLeft duration="3000"/>
</mx:Parallel>
<mx:Panel title="Area Chart with Effects">
<mx:AreaChart id="myChart"
dataProvider="{expenses}"
creationCompleteEffect="showEffects"
hideEffect="hideEffects"
showEffect="showEffects">
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="Month"/>
</mx:horizontalAxis>
<mx:series>
<mx:AreaSeries yField="Profit"
displayName="Profit"/>
<mx:AreaSeries yField="Expenses"
displayName="Expenses"/>
</mx:series>
</mx:AreaChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
<mx:Button label="Toggle visibility"
click="myChart.visible=!myChart.visible"/>
</


相关文档:

Flex Tree组件Demo

这个DEMO可以创建一个全新的树型结构,让我感到奇怪的是,虽然我用XML而不是XMLListCollection/ArrayCollection作为Tree的数据源,但对XML的更新依然会在Tree中反映出来——这似乎和Flex的文档有冲突,下面是引用Flex文档的一段内容:
Raw objects are often not sufficient if you have data that changes, bec ......

flex嵌入到html和html嵌入到flex

flex嵌入到html:
  用swfobject,下载的.js地址:http://www.adobe.com/devnet/activecontent/articles/devletter.html
在你的 HTML 页面头部<head>区嵌入这个脚本文件:<script type="text/javascript" src="swfobject.js"></script>
在你的 HTML 中写一个用来放 Flash 的容器,比如<div> ......

flex 实时内存使用率图

 <?xml version="1.0"?>
<!-- charts/MemoryGraph.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="initTimer()">
<mx:Script>
<!--[CDATA[
import flash.utils.Timer;
import flash.events.TimerEve ......

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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号