flexͼ±íÊý¾Ý¶¯Ì¬¸üÐÂЧ¹ûʾÀý
<?xml version="1.0"?>
<!-- charts/BasicSeriesSlideEffect.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses1:ArrayCollection=new ArrayCollection([{Month: "Jan", Income: 2000, Expenses: 1500}, {Month: "Feb", Income: 1000, Expenses: 200}, {Month: "Mar", Income: 1500, Expenses: 500}]);
[Bindable]
public var expenses2:ArrayCollection=new ArrayCollection([{Month: "Jan", Income: 1200, Expenses: 800}, {Month: "Feb", Income: 2500, Expenses: 300}, {Month: "Mar", Income: 575, Expenses: 490}]);
public var year:int=1;
public function changeProvider():void
{
if (year == 2)
{
myChart.dataProvider=expenses1;
b1.label="View Second Year Data";
lbl.text="First Year Data";
year=1;
}
else
{
myChart.dataProvider=expenses2;
lbl.text="Second Year Data";
b1.label="View First Year Data";
year=2;
}
}
]]-->
</mx:Script>
<!-- Define chart effects -->
<mx:SeriesSlide id="slideIn"
duration="1000"
direction="up"/>
<mx:SeriesSlide id="slideOut"
duration="1000"
direction="down"/>
<mx:Panel title="Column Chart with Basic Series Slide Effect"
layout="absolute"
height="493">
<mx:Label id="lbl"
text="First Year Data"
width="233.5"
height="44"
fontSize="24"
color="#091D96"
top="5"
right="10"/>
<mx:ColumnChart id="myChart"
dataProvider="{expenses1}">
<mx:horizontalAxis>
<mx:C
Ïà¹ØÎĵµ£º
flex repeater¿Ø¼þ×¢Òâ
Repeater ¹ËÃû˼Ò壬Repeat¾ÍÊÇÖظ´µÄÒâ˼£¬ Repeater ¾ÍÊÇÓÃÀ´Öظ´µÄ¿Ø¼þ
Repeater »á¸ù¾ÝÊý¾ÝÔ´ÖжÔÏóµÄ¶àÉÙÀ´²úÉú¶àÉÙ¸ö×ÓÏÉú³ÉµÄ×ÓÏîÈ«²¿ÊÇÒÔÊý×éÐÎʽ´æÔÚµÄ
<mx:Repeater id="myRepeater" dataProvider="{myArray}">
<mx:HBox> ......
ÏîÄ¿ÖУ¬Óû§×Ô¶¨ÒåÍ·Ïñ¹¦ÄÜÒªÇóʵÏÖÓû§×Ô¶¨ÒåÍ·Ïñ£¬²¢ÇÒ¿ÉÒÔ×ÔÓÉÑ¡ÔñͼƬָ¶¨ÇøÓò×÷ΪͷÏñÏÔʾ¡£ ڤ˼¿àÏ룬ÕÒÁË°ëÌì×ÊÁÏ£¬ÖÕÓÚÕÒµ½Ò»ÆªÏà¹ØÎÄÕ£¬²¢ÌṩÁËÔ´´úÂë¡£ËäÈ»ÑÛ¿´ÓÐÁËüĿ£¬µ«ÊÇËÆÐзÇÐС£ http://www.flashas.net/html/flashasyy/20080423/2950.html £ ......
/**
* @author:ycccc8202
* @ÓÃ;:×¢²áʼþ½øÐд«µÝ²ÎÊýµÄ´úÀíÀà
* @date:2007.8.26
* @example:
* import com.ycccc.utils.JEventDelegate
stage.addEventListener(MouseEvent.MOUSE_DOWN,JEventDelegate.create(mouseDownHandler,"a","b"));
function mouseDownHandler(e:MouseEvent,...arg) {
trace(e)
......
<?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 ......