首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

flex与js交互回调,解析JSON数据兑现统计,并自动刷新

2012-11-22 
flex与js交互回调,解析JSON数据实现统计,并自动刷新?xml version1.0 encodingutf-8?s:Applicatio

flex与js交互回调,解析JSON数据实现统计,并自动刷新

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
xmlns:height="100%" horizontalAlign="center" verticalAlign="middle">
<s:Label text="{regionLabel}"
fontFamily="宋体" fontSize="20" fontWeight="bold" color="#666666"/>
<s:VGroup width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
<amcharts:AmLegend
color="0x000000"
x="45"
y="10"
switchable="false"
dataProvider="{chartLine}"
width="100%"
marginRight="20"
marginLeft="40"
markerType="line"
textClickEnabled="false"
marginBottom="5"/>

<Class:AmSerialChart
id="chartLine" zoomOutText="显示全部"
width="100%" startDuration="1"
height="100%" dataProvider="{actool}"
categoryField="name" angle="30" depth3D="20">

<Class:valueAxes>
<amcharts:ValueAxis dashLength="5"/>
</Class:valueAxes>

<Class:graphs>
<amcharts:AmGraph id="g3" lineColor="#FF6600" valueField="value" title="{regionTitle}"
type="line" dashLength="3" lineThickness="2" bullet="round" filters="{[shadow]}" balloonText="[[nam]] : [[value]]"/>
</Class:graphs>

<Class:categoryAxis>
<amcharts:CategoryAxis gridPosition="start" dashLength="5" id="catAxis" parseDates="false"/>
</Class:categoryAxis>

<Class:chartCursor>
<amcharts:ChartCursor cursorAlpha=".5"/>
</Class:chartCursor>

<Class:chartScrollbar>
<amcharts:ChartScrollbar
hideResizeGrips="false"
backgroundAlpha="0.1" graph="{g3}" />
</Class:chartScrollbar>
</Class:AmSerialChart>
</s:VGroup>


</s:Application>

热点排行