Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flex 4 : ʹÓà AreaChart ¿Ø¼þ

http://www.slsay.com/archives/154
ʹÓà AreaChart ¿Ø¼þ½«Êý¾ÝչʾΪÆäÏßÐͱ߽ç±íʾÊý¾ÝÖµµÄÃæ»ýÇøÓò¡£Ãæ»ýÇøÓòÓÉÏßÌõ¼°ÆäϱßËùÌî³äµÄÑÕÉ«ºÍͼ°¸×é³É¡£¿ÉÒÔʹÓÃͼ±ê»ò·ûºÅÑØ×ű߽çÏßչʾÿ¸öÊý¾Ýµã£¬Ò²¿ÉÒÔչʾ²»´øͼ±êµÄ¼òµ¥ÇøÓòÏß¡£
´´½¨ AreaChart ¿Ø¼þµÄÀý×ÓÈçÏ£º
<?xml version="1.0"
?>
<!-- charts/BasicArea.mxml -->
<!-- http://www.slsay.com/archives/154 -->
<mx:Application
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:mx="library://ns.adobe.com/flex/halo"
       xmlns:s="library://ns.adobe.com/flex/spark"
       creationComplete="srv.send()"
>
    <fx:Declarations
>
        <mx:HTTPService
id="srv"
url="http://aspexamples.adobe.com/chart_examples/expenses-xml.aspx"
/>
            </fx:Declarations
>
        <mx:Panel
title="Area Chart"
>
            <mx:AreaChart
id="myChart"
showDataTips="true"
                   dataProvider="{srv.lastResult.data.result}"
>
                <mx:horizontalAxis
>
                    <mx:CategoryAxis
                           categoryField="month"
                           displayName="Month"
/>
                </mx:horizontalAxis
>
                <mx:series
>
                    <mx


Ïà¹ØÎĵµ£º

flexÏò×Ó´°¿Ú´«Öµ(ºÜ¼òµ¥µÄ°ì·¨)

var login:infoChange=infoChange(PopUpManager.createPopUp( this, infoChange , true));
     login.x=250;
     login.y=150;
     login.userid.text=dg.selectedItem.aa;
     login.username.text=dg.selectedItem.bb;
  ......

FlexͨÐÅƪ——FlexºÍÍⲿӦÓóÌÐò½øÐÐͨÐÅ

Flash To EXE
Flex¶Ë
Flex´´½¨Ò»¸öFlex ProjectÃüÃûΪDemo1£¬ÀàÐÍÑ¡Web application(runs in Flash Player)
ÔÚDemo1.mxmlÉÏÌí¼ÓÒ»¸ö°´Å¥£¬²¢Î´°´Å¥Ìí¼Óµã»÷ʼþ
    private function ButtonClick(event:MouseEvent):void
    {
       ......

ÓÃFLEXÈçºÎÈ¡ä¯ÀÀÆ÷µØÖ·À¸ÖеÄÓòÃûÐÅÏ¢£¿

ÓÃFLEXÈçºÎÈ¡ä¯ÀÀÆ÷µØÖ·À¸ÖеÄÓòÃûÐÅÏ¢£¿ÎÒ²éÕÒµ½Á½ÖÖ·½·¨£º
µÚÒ»ÖÖ·½·¨ÊÇÓÃExternalInterface.call('window.location.href.toString')£¬ËüµÄÖµ¾ÍÊǵØÖ·À¸ÖеÄÓòÃû
ÓÐÒÔϼ¸µãÐèҪעÒ⣺
1.µ±FlashºÍ¼ÓÔØËüµÄÍøÒ³²»Í¬Óòʱ£¬ÐèÒªÔÚÍøÒ³ÔÚ PARAM »ò EMBED ±êÇ©ÖнøÐÐÉèÖÃAllowScriptAccess Ϊ“always”
¹ØÓÚ ......

¼òµ¥½éÉÜFlexÓëWeb·þÎñ¶ËµÄ½»»¥

¼òµ¥½éÉÜÐÅFlexÓëWeb·þÎñµÄ½»»¥
Ö÷ÒªÄÚÈÝ:
       1.ActionScriptÓë·þÎñ¶ËµÄ»ù±¾½»»¥·½Ê½(REST).
       2.ActionScriptÌØÓеÄÊý¾Ý´«Êä¸ñʽ(AMF)Óë·þÎñÆ÷½»»¥.
       3.FlexÓëWebService.
 
ҪʵÏÖActionScriptÓë· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ