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

Flex ListÐб³¾°É«

 ¹ýÈ¥ÔÚ¶ÔDataGridÉèÖÃÐб³¾°É«Ê±£¬¸Ð¾õ»¹ÊÇͦ·½±ãµÄ£¬Ö»ÒªÖØÐ´DataGridµÄ£¬ÈçÏÂ
private var _rowColorFunction:Function;
public function set rowColorFunction(f:Function):void
{
this._rowColorFunction = f;
}
public function get rowColorFunction():Function
{
return this._rowColorFunction;
}
override protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void
{
if (this.rowColorFunction != null) {
if (dataIndex < this.dataProvider.length) {
var item:Object = this.dataProvider.getItemAt(dataIndex);
color = this.rowColorFunction.call(this, item, color);
}
}
super.drawRowBackground(s, rowIndex, y, height, color, dataIndex);
}

Èç¹ûÄ㻹ÊDz»ÊǺÜÃ÷°×¿ÉÒԲο¼ÎÒÒÔǰµÄ²©¿Íhttp://blog.csdn.net/terryzero/archive/2009/10/12/4657277.aspx
½ñÌìÎÒÅöµ½¸öÐèÇóÊÇÒª¶ÔListÐбäÉ«£¬ÓÉÓÚÎÒÏëDataGridºÍList¶¼ÊǼ̳ÐÓëListBase,¶¼ÓÐ override protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void
Õâ¸ö·½·¨£¬ËùÒÔÎÒ¾ÍÏ뵱Ȼ£¬ÕÕºù«»­Æ°£¬Ò²ÖØÐ´ÁËÕâ¸ö·½·¨£¬µ«¾­¹ýµ÷ÊÔÔõôҲµ÷Óò»µ½Õâ¸ö·½·¨¡£¸ãµÄÎҷdz£·Ñ½â£¬ÄѵÀÕâ¸ö·½·¨Ã»Óõİ¡£¿ÍøÉϲéÁ˺þ㬹úÄÚûɶÕâ·½ÃæµÄºÃÎÄÕ£¬Í»È»Ò»Æª¹úÍâµÄÎÄÕÂÆô·¢ÁËÎÒ¡£ÈçÏÂ
All the listy components in Flex (List, Datagrid, Tree, etc.) have a protected method called drawRowBackground which is in charge of drawing the background for a given row. You typically use it to color a given row based on some facet of the data the row represents (e.g. red background for rows with a negative bank balance).
With DataGrid, it's easy to use, just subclass DataGrid and override the method, parameterized so you can pass in a function to compute the color for each row based on the row index/data/original color/etc. With List (and since ComboBox uses a


Ïà¹ØÎĵµ£º

FlexµÄHttpServiceµÄд·¨


     flexºÍºǫ́½»»¥Êý¾Ý×îÖØÒªÊÇͨ¹ýÒì¹¹´«ÊäµÄhttpserivceµÄxml½á¹¹¡£¶ø¸ßЧÂʺÏÀíµÄÒì²½´«ÊäÊý¾ÝÊÇflexµÄ¿ª·¢ÖеĺËÐÄ¡£ÎҾ͹«¿ªÒ»ÏÂ×Ô¼ºÃæÏò½Ó¿ÚµÄhttpserviceµÄд·¨¡£Ï£ÍûÓÐÈË¿ÉÒÔÖ¸Õý¡£
   Ê×ÏȵÚÒ»¸ö½Ó¿ÚÊǾö¶¨Í¨¹ý»ñÈ¡xmlµÄ½Ó¿Ú£º
   package com.sunshine.framework. ......

Flash PlayerºÍFlex¿ò¼ÜµÄ²»Í¬

Flash PlayerÊÇFlash/Flex³ÌÐòµÄÔËÐл·¾³¡£ËüÓÃÀ´ÔËÐÐ.swfÎļþ£¬Íê³É¼ÓÔØÍ¼Æ¬£¬»æÖÆÍ¼Ïñ£¬ÇëÇóHTTPµÈÖ®ÀàµÄ²Ù×÷¡£Flash/Flex³ÌÐòÖ»ÄÜ×öFlash PlayerÄܹ»×öµÄÊÂÇé¡£
Flex³ÌÐò¾ÍÊÇFlash³ÌÐò£¬Flash²»ÄÜ×öµÄÊÂÇ飬FlexÒ»Ñù²»ÄÜ×ö¡£ËùÒÔ³ÌÐò°üº¬µÄÖ»²»¹ýÊǾßÌåÖ¸Á¶øFlash PlayerÔòÊÇÔËÐÐÖ¸Áî¡£Flash³ÌÐòºÍFlex³ÌÐòÔÚÄÚÈÝÉÏà ......

FlexÖµµÃÒ»¿´²Î¿¼×ÊÔ´£¨×ª£©

ת×Ôhttp://gdljg0460.javaeye.com/blog/268848
1. Flexbox
http://flexbox.mrinalwadhwa.com/
ÕâÊÇһλÀ´×ÔÓ¡¶ÈµÄflex¿ª·¢ÕßÔÚ07Äê2Ô·ݽ¨Á¢µÄflex×é¼þ¿â£¬ÀïÃæÒ²Óв»Éٺö«Î÷¡£
2. Flexlib
http://code.google.com/p/flexlib/
ÓÉDougmccuneµÈÈ˽¨Á¢µÄflex×é¼þ¿â£¬ÆäÖÐÓв»ÉÙʵÓõÄ×é¼þ¡£
3.SpringGraph Flex Compo ......

RSL£­£­Flex swf ÓùÓüõ·Êר¼Ò

RSL ( Runtime Shared Library )——ÔËÐÐʱ×é¼þ¹²Ïí¿â,ÓþÍÊÇʹͬÓòÀïµÄÏîÄ¿¿É¹²Ïí×ÊÔ´£¬ÕâÑù¿ÉÒÔ½ÚÊ¡ÏîÄ¿µÄµµ°¸´óС£¬Ò×ÇиÒ×°áÔË¡¢Ò×·ÖÏí×é¼þ¿âÏîÄ¿Óë×é¼þ¿â¿É·Ö¿ª¿ª·¢ .ÈçÏÂͼ£º
ÏÂÃæÓÃͼÎĵķ½Ê½Õ¹Ê¾ÔÚFlex BuilderÖÐʹÓÃRSL¸øProject¼õ·ÊµÄ²½Öè¡£Ê×ÏÈÀ´¿´¿´¼õ·Ê֮ǰµÄ”ÌåÖØ”:
ÈçÉÏͼËùʾ£º ......

Flex ±àÒë²ÎÊý

ÏÂÃæÊÇһЩ³£¼ûµÄ±àÒëÆ÷²ÎÊý£º
1£¬¡¾verbose-stacktraces¡¿
Ö¸¶¨SWFÔÚÔËÐÐʱÒì³£ÐÅÏ¢Öаüº¬ÐкźÍÎļþÃû£¬Õ⽫ʹ²úÉúµÄSWFÎļþ¸ü´óЩ£¬´ø
verbose-stacktracesµÄSWF»¹ÊǺ͵÷ÊÔ°æ±¾µÄSWFÓÐÇø±ðµÄ¡£
2£¬¡¾source-path path-element¡¿
Ìí¼ÓÆäËûÔ´´úÂëĿ¼»òÎļþ£¬¿ÉÒÔʹÓÃͨÅä·ûÀ´Ìí¼ÓĿ¼ÖÐËùÓÐÎļþ»ò×ÓĿ¼£¬Ò²¿ÉÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ