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

flex ʵʱÄÚ´æÊ¹ÓÃÂÊͼ

 <?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.TimerEvent;
import mx.collections.ArrayCollection;
[Bindable]
public var memoryUsage:ArrayCollection=new ArrayCollection();
public function initTimer():void
{
// The first parameter in the Timer constructor
// is the interval, in milliseconds. The second
// parameter is how many times to run (0 is
// infinity).
var myTimer:Timer=new Timer(1000, 0);
// Add the listener for the timer event.
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}
public function timerHandler(event:TimerEvent):void
{
var o:Object=new Object();
// Get the number of milliseconds since Flash
// Player started.
o.time=getTimer();
// Get the total memory Flash Player is using.
o.memory=flash.system.System.totalMemory;
// Add new object to the ArrayCollection, which
// is bound to the chart's data provider.
memoryUsage.addItem(o);
}
]]-->
</mx:Script>
<mx:LineChart id="chart"
dataProvider="{memoryUsage}"
showDataTips="true">
<mx:horizontalAxis>
<mx:LinearAxis/>
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis minimum="5000000"/>
</mx:verticalAxis>
<mx:series>
<mx:Array>
<mx:LineSeries yField="memory"/>
</mx:Array>
</mx:series>
</mx:LineChart>
</mx:Application> 


Ïà¹ØÎĵµ£º

È¥µôFlexÀ¶É«Ñ¡ÖÐ״̬

 Æäʵһ°ãµÄÇé¿öÏÂÊDz»»áÓõ½ÕâÖÖÇé¿öµÄ£¬Ò»°ãÔÚ³ÌÐòÀ±ÈÈçÑ¡ÖÐÒªÌîдµÄÏîÄ¿£¬¶¼Ï²»¶ÓÐÒ»¸öÑ¡ÖеÄ״̬£¬µ«ÊÇÏÖÔÚÎÒÃÇÀ´¸ö·´ÆäµÀ¶øÐÐ,Èç¹ûÎÒ²»ÏëÒªÕâ¸ö״̬¸ÃÔõô°ìÄØ?
      ²Î¿¼ÁËЩ×ÊÁÏ,ÆäʵҲ¼òµ¥,Óкü¸ÖÖ·½·¨£¬µ«ÊÇ·¢ÏÖÁËÒ»¸ö×îÓÐÓõķ½·¨,Ê×ÏÈÎÒÃÇÔÚÎę̀ÉÏËæÒâ·Å¼¸¸öTEXTINPUT ......

FlexÓëjavaÕûºÏÎÊÌâ

ÎʸöÎÊÌâ ×î½üÔÚѧϰFlex¡£¡£¡£ÕÕ×ÅÍøÉÏ×ÊÁÏ£¬ÔÚMyEclipseÖÐÍê³ÉÁËFlexÓëwebÏîÄ¿ÕûºÏ
ÔÚ×öÆÕͨFlexÔËÐвâÊÔÊÇÊÇûÓÐÎÊÌâµÄ£¬µ«Èç¹ûÏëµ÷ÓÃjavaÀ࣬°´ÕÕÍøÉϵÄ×ö·¨£¬ÊÇÒª¸ü¸Ä¸ÃÄ¿
¼ÏµÄremoting-config.xml£¬µ«ÊÇÎÒ×Ô¶¯Éú³ÉµÄWebRoot/WEB_INFO/flexĿ¼ÏÂÃæ½ö½öÖ»ÓÐ
services-config.xmlÒ»¸öÎļþ£¬ÕâÊÇʲôԭÒò£¿£¿ÎÒµÄÊÇ ......

flex ÌØÐ§ Ðýתtooltip

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertic ......

Flex Tree×é¼þDemo

Õâ¸öDEMO¿ÉÒÔ´´½¨Ò»¸öȫеÄÊ÷Ðͽṹ£¬ÈÃÎҸе½Ææ¹ÖµÄÊÇ£¬ËäÈ»ÎÒÓÃXML¶ø²»ÊÇXMLListCollection/ArrayCollection×÷ΪTreeµÄÊý¾ÝÔ´£¬µ«¶ÔXMLµÄ¸üÐÂÒÀÈ»»áÔÚTreeÖз´Ó³³öÀ´——ÕâËÆºõºÍFlexµÄÎĵµÓгåÍ»£¬ÏÂÃæÊÇÒýÓÃFlexÎĵµµÄÒ»¶ÎÄÚÈÝ£º
Raw objects are often not sufficient if you have data that changes, bec ......

Flex ¿Ùͼ³ÌÐò

ÏîÄ¿ÖУ¬Óû§×Ô¶¨ÒåÍ·Ïñ¹¦ÄÜÒªÇóʵÏÖÓû§×Ô¶¨ÒåÍ·Ïñ£¬²¢ÇÒ¿ÉÒÔ×ÔÓÉÑ¡ÔñͼƬָ¶¨ÇøÓò×÷ΪͷÏñÏÔʾ¡£     ڤ˼¿àÏ룬ÕÒÁ˰ëÌì×ÊÁÏ£¬ÖÕÓÚÕÒµ½Ò»ÆªÏà¹ØÎÄÕ£¬²¢ÌṩÁËÔ´´úÂë¡£ËäÈ»ÑÛ¿´ÓÐÁËüĿ£¬µ«ÊÇËÆÐзÇÐС£     http://www.flashas.net/html/flashasyy/20080423/2950.html  £ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ