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 £ ......
Flex
4 SDKÔ´ÂëdzÎö£¡
Èç´ó¼ÒҪתÔØ£¬Çë±£Áô±¾È˵İæȨ:
/*
*Description:PV3DÀà¼Ì³ÐÌåϵ½á¹¹
*Auther:³ç³ç-ÌìÕæµÄºÃÀ¶°¡
*MSN:chongchong2008@msn.com
*Blog:chongchong2008
*Dates:2009-06-02
*Copyright:ChongChong2008
YiChang HuBei China
*/
Flex 4 SDKÔ´ÂëdzÎö£¡
×î½üÏÂÁËFlex 4 SDK £¨flex_sd ......
¡¡¡¡FlexÓ¦Óÿª·¢¹ý³ÌÖÐÈçÐèÒªÁé»îµÄÔÚ²»Í¬×é¼þ£¨ÈçAÓëB£¬¸¸Óë×Ó£©Ö®¼äÏìӦʼþ£¬´«µÝ²ÎÊýµÈ¹¦ÄÜʱ¾Í»áʹÓÃ×Ô¶¨Òåʼþ£¨Event£©»úÖÆ,ÏÂÃæͨ¹ýÒ»¸öÊÂÀý·ÖÆß²½,ͨ¹ý×Ô¶¨ÒåEventºÍEventDispatcherÁ½ÖÖ»úÖÆʵÏÖʼþ½»»¥ºÍ²ÎÊý´«µÝ;
ÊÂÀýÃèÊö:¡¡ÓÐÒ»¸ö¸¸ÇדparentApp.mxml&rd ......