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

Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½

Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æ鶵ÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æй¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£¬removeµôÕâЩ¼àÌý£¬ËäÈ»ÈõÒýÓÃÒ²¿ÉÒÔ±ÜÃâÕâЩÎÊÌ⣬µ«×Ô¼ºÕƿظоõ¸üºÃ¡£
µ«ÒÔϼ¸ÖÖÇé¿ö²»»áÔì³ÉÄÚ´æй¶£º
ÈõÒýÓãºsomeObject.addEventListener(MouseClick.CLICK, handlerFunction, false, 0, true);
¶Ô×Ô¼ºµÄÒýÓãºthis.addEventListener(MouseClick.CLICK, handlerFunction);
×Ó¶ÔÏóµÄÒýÓãº
private var childObject:UIComponent = new UIComponent;
addChild(childObject);
childObject.addEventListener(MouseEvent.CLICK, clickHandler);
×ÜÖ®…ÓÐaddEventListener£¬¾ÍremoveEventListenerһϰɣ¬ÒªÎª×Ô¼º×öµÄʸºÔð~¹þ¹þ
Çå³ýÒýÓÃ
removeµô×Ó¶ÔÏóºó²¢²»»áɾ³ý¸Ã¶ÔÏó£¬Ëû»¹±£ÁôÔÚÄÚ´æÖУ¬Ó¦¸Ã½«ÒýÓÃÉèÖÃΪnull
removeChildren(obj);
obj = null;
¾²Ì¬³ÉÔ±
Class £¨»òMXML£©ÖÐÓУº
public static var _eventService : MyService=new MyService();
½â¾ö£ºÔÚdisposeʱ£¬ÐèÒªÉèÖãº
_eventService =null£»
module (δ½â¾ö)
moduleLoader unloadModuleºó
ModuleInfo ²¢²»»á±»GC.
Garbage Collection in a MultiCore Modular Pipes Application
ÕâƪÎÄÕ½éÉÜÁËÒ»ÖÖGC²ßÂÔ£¬¸Ð¾õ¶ÔÓÚModuleInfo µÄGCÎÞЧ¡£
(δ³¢ÊÔ¡¢Î´Óöµ½)
CSSÑùʽ
module ÖÐÈç¹ûʹÓÃÁËshellµÄCSS¶¨Òå»òÊÇ ÕâÑùµÄ¶¨Ò壬ÄÇôÕâ¸ömodule½«²»ÄÜGC.
µ¯³öµÄ´°¿ÚÓ¦¸ÃÊÇͬÑùµÄ½á¹û.
½â¾ö·½·¨£¬Ê¹Óö¯Ì¬CSSÎļþ
module initÖÐ
StyleManager.loadStyleDeclarations("css/myStyle.swf");
module disposeÖÐ
StyleManager.unloadStyleDeclarations("css/myStyle.swf");
TextInput/Textarea(δ½â¾ö)
Èç¹ûmoduleÖÐÓÐwindowʹÓÃÁËTextInput/Textarea¿Ø¼þ£¬²»µã»÷ûÓÐÎÊÌ⣬ֻҪµãÉÏÈ¥£¬ÄÇôºÜÒź¶ÁË£¬moduleºÍËùÔÚ´°Ì彫²»Äܱ»GC.
Õâ¸öBUG·Ç³£ÑÏÖØ£¬Ä¿Ç°»¹Ã»Óнâ¾ö·½·¨¡£
memory leak when using TextInput and TextArea when click the keyboard ÕâÀïÃ渽¼ÓµÄ½â¾ö·½·¨ÎÞЧ¡£
ͨ¹ýprofiler·ÖÎö£¬Ó¦¸ÃºÍFocusmanagerÓйأ¬Ö»ÓÐÒ»µã»÷¾Í²»»áÊÍ·Å¡£
CursorManager.setCursor
ʹÓÃÁË
cursorID = CursorManager.setCursor(iconCl


Ïà¹ØÎĵµ£º

Flex¡¡¿ª·¢ÏîĿС½á

1.µ¯³öд°¿Ú
Flexͨ¹ýPopUpManagerÀàÀ´ÊµÏÖµ¯³öд°¿Ú£º
ÏÈÉèÖúÃÒªµ¯³ö´°¿ÚµÄÒ³Ã棬ȻºóÔÚÖ÷´°¿ÚÖÐÏÈnew³öµ¯³ö´°¿ÚµÄ¶ÔÏó£¬È»ºó¿ÉÒÔ¶Ôµ¯³ö´°¿ÚµÄÊôÐÔ½øÐÐ
¸³Öµ£¬
      var genggai : GengGaiWindow = new GengGaiWindow();
      genggai.logId = adg.selectedI ......

Silverlight 4¶Ô±ÈFlex 4´òÓ¡¹¦ÄÜ

Silverlight×÷ΪһÃÅм¼ÊõÍƳöÒѾ­ÈýÄ꣬ÔÚSilverlightÔçÆÚ°æ±¾£¬´ó¼Ò¶¼ÈÏΪSilverlightµÄ¹¦ÄÜÎÞ·¨ºÍFlex½øÐжԱȣ¬¸üÊÇÎÞ·¨³¬Ô½Flex£¬ÔÚ2009Äê11Ô£¬Î¢ÈíÍƳöÁËSilverlight 4²âÊÔ°æ±¾£¬ÒÔÆäÇ¿´óµÄ¹¦ÄÜÓÖÒ»´ÎÎüÒýÁËÖڶ࿪·¢ÈËÔ±µÄÑÛÇò£¬Ðí¶àÔø¾­ÔÚFlexÏÂÖ§³ÖµÄ¹¦ÄÜ£¬ÏÖÔÚSilverlightÏÂÒѾ­¿ÉÒÔʵÏÖ£¬¶øÇÒ»¹ÓÐһЩÐµĹ¦ÄÜ£ ......

Flex Óà POST Ìá½»Êý¾Ý


public function submit():void{
   
    //ÒªÇëÇóµÄURL
    var request:URLRequest = new URLRequest("
http://localhost:8086/test.do
") ;
    var load:URLLoader = new URLLoader() ;
    //URL²ÎÊý
  & ......

flexѧϰ flex¶ÁÈ¡xmlÎļþ

Ô´xmlÎļþ
 <?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people ......

10 Tips for Flex Application Performance

We're going to keep this post lean and mean, and get down to
business with 10 Tips that will keep your Flex applications fast, lean,
and responsive.
Rule # 1: Clean up after yourself
In general, it is good practice to maintain clean code. Not only
in the sense of having properly formatted and ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ