flexÄÚ´æÐ¹Â¶½â¾öÖ®µÀ
£¨1£©Event Listeners
Listening to parent objects does cause memory leaks
e.g.
override protected function mouseDownHandler(…):void {
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
you can:
1.Removing the addEventListener (when dispose).
systemManager.removeEventListener(“mouseUp”, mouseUpHandler);
2. Use of weak reference listeners
override protected function mouseDownHandler(…):void {
systemManager.addEventListener(“mouseUp”, mouseUpHandler, false, 0, true);
These do not block garbage collection(generally do not cause memory leaks):
Weak References
Self References
References to Child Objects
weak reference event listener e.g.
&nb
Ïà¹ØÎĵµ£º
FLEX±àÒëµÄSWFÎļþ£¬Ö»ÄÜÑ¡Ôñ·ÃÎʱ¾µØÎļþ»ò·ÃÎÊÍøÂçÎļþ£¬¶þÕßÖ»ÄÜȡһ£¨àÅ£¬ÎªÊ²Ã´£¿ÎÒÒ²²»ÖªµÀ£¬¹Ù·½ËµÊÇΪÁ˰²È«¿¼ÂÇ£©£¬¶øFLEX±àÒëµÄĬÈÏÑ¡ÏîÊÇÖ»ÄÜ·ÃÎÊÍøÂçÎļþ£¬ËùÒÔÄ㽫binÀïµÄ¶«Î÷COPYµ½ÆäËûµØ·½¾Í²»ÄܶÁÈ¡ÁË¡£¶øÄãÔÚĬÈϵÄbinĿ¼Ï¿ÉÒÔ¶ÁÈ¡µÃµ½£¬ÊÇÒòΪFLEXÈÏΪÄãÊÇÔÚIDE»·¾³ÖÖ£¬ÕâʱÊÇûÓÐÕâ¸öËùνµÄ°²È«ÏÞÖÆµÄ ......
¼òµ¥½éÉÜÐÅFlexÓëWeb·þÎñµÄ½»»¥
Ö÷ÒªÄÚÈÝ:
1.ActionScriptÓë·þÎñ¶ËµÄ»ù±¾½»»¥·½Ê½(REST).
2.ActionScriptÌØÓеÄÊý¾Ý´«Êä¸ñʽ(AMF)Óë·þÎñÆ÷½»»¥.
3.FlexÓëWebService.
ҪʵÏÖActionScriptÓë· ......
http://yecon.blog.hexun.com/36798900_d.html
ʹÓà Adobe Flex ²úÆ·ÏßµÄʱºò£¬²ÉÓÃͼ±íºÍͼÐÎÀ´Õ¹Ê¾Êý¾Ý»áʹÓû§ÓëÊý¾ÝµÄ½»»¥¸ü¼ÓÈÝÒס£Ïà¶Ô¼òµ¥µÄÊý×Ö±í¸ñÀ´Ëµ£¬¿ÉÒÔʹÓñíʾÊý¾ÝµÄ²»Í¬ÑÕÉ«¡¢±êÌâ¡¢ÏßÌõÀ´Õ¹Ê¾ÌõÐÎͼ¡¢±ýͼ¡¢ÏßͼµÈµÈ¡£
ͼ±í¿Ø¼þÊÇ Adobe Flash Builder רҵ°æµÄÌØÐÔ¡£Ò²¿ÉÒÔÔÚ Falsh Builder ±ê×¼°æÖ ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
......