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>
Ïà¹ØÎĵµ£º
Æäʵһ°ãµÄÇé¿öÏÂÊDz»»áÓõ½ÕâÖÖÇé¿öµÄ£¬Ò»°ãÔÚ³ÌÐòÀ±ÈÈçÑ¡ÖÐÒªÌîдµÄÏîÄ¿£¬¶¼Ï²»¶ÓÐÒ»¸öÑ¡ÖеÄ״̬£¬µ«ÊÇÏÖÔÚÎÒÃÇÀ´¸ö·´ÆäµÀ¶øÐÐ,Èç¹ûÎÒ²»ÏëÒªÕâ¸ö״̬¸ÃÔõô°ìÄØ?
²Î¿¼ÁËЩ×ÊÁÏ,ÆäʵҲ¼òµ¥,Óкü¸ÖÖ·½·¨£¬µ«ÊÇ·¢ÏÖÁËÒ»¸ö×îÓÐÓõķ½·¨,Ê×ÏÈÎÒÃÇÔÚÎę̀ÉÏËæÒâ·Å¼¸¸öTEXTINPUT ......
£¨ÉÏ£©
µ±ÒªÊ¹Óò»Í¬ÓïÑԵİ汾µÄʱºò£¬±ãÐèÒªÁËÓ¦ÓóÌÐòµÄ¹ú¼Ê»¯¡£
¹ú¼Ê»¯²»µ¥Ö¸×Ö·û´®µÄ¹ú¼Ê»¯£¬»¹ÓÐǶÈëʽ×ÊÔ´£¨Í¼Æ¬£©µÄ¹ú¼Ê»¯£¬½Å±¾ÀඨÒåµÄÒýÓá£ÔÚ³ÌÐòµ±ÖÐʹÓùú¼Ê»¯µÄÒªµã°üÀ¨Á˱àд×ÊÔ´Îļþ£¬²ÎÊýµÄÉèÖ㬱¾µØ»¯Ïà¹ØµÄflex¿ò¼ÜÄÚÈÝ¡£
×ÊÔ´ÎļþÊÇÓúó׺ÃûΪ“.properties”½áÊøµÄÎļþ£¬ÒÔÒ»ÖÖ¼üÖµµÄÐ ......
flex3 ÖеÄÖÐÎÄ×ÖÌåÖ»Ö§³ÖÓÐÏ޵ļ¸ÖÖ£¬ÒªÃ´Ç¶Èë×ÖÌ壬Ҫô¾ÍʹÓÃÕ⼸ÖÖ£º
Ö§³ÖһЩĬÈϵÄÓ¢ÎÄ×ÖÌå,ÈçArial¡¢Times New Roman¡¢Courier New¡¢Georgia¡¢VerdanaµÈ¡£
Ö§³ÖµÄÖÐÎÄ×ÖÌ壺ËÎÌå¡¢»ªÎÄ¿¬Ìå¡¢»ªÎÄϸºÚ¡¢»ªÎÄ·ÂËΡ¢»ªÎÄÖÐËΡ£
Flex3 Öм´Ê¹¿Í»§¶Ë×°Á˺ܶà×ÖÌ壬ÄÜʹÓõÄÒ²Ö»ÄÜÊÇÉÏÃ漸ÖÖ×ÖÌ壬³ý·ÇǶÈë×ÖÌå¡£
µ«ÊÇ ......
¡¡¡¡FlexÓ¦Óÿª·¢¹ý³ÌÖÐÈçÐèÒªÁé»îµÄÔÚ²»Í¬×é¼þ£¨ÈçAÓëB£¬¸¸Óë×Ó£©Ö®¼äÏìӦʼþ£¬´«µÝ²ÎÊýµÈ¹¦ÄÜʱ¾Í»áʹÓÃ×Ô¶¨Òåʼþ£¨Event£©»úÖÆ,ÏÂÃæͨ¹ýÒ»¸öÊÂÀý·ÖÆß²½,ͨ¹ý×Ô¶¨ÒåEventºÍEventDispatcherÁ½ÖÖ»úÖÆʵÏÖʼþ½»»¥ºÍ²ÎÊý´«µÝ;
ÊÂÀýÃèÊö:¡¡ÓÐÒ»¸ö¸¸ÇדparentApp.mxml&rd ......
<?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 ......