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

Flex ¶Ô¼¯ºÏµÄ¶à¸ö×ֶνøÐÐÅÅÐò

Flex ¶Ô¼¯ºÏµÄ¶à¸ö×ֶνøÐÐÅÅÐò
¹Ø¼ü×Ö: flex, ÅÅÐò, ÈÕÆÚÅÅÐò
ÒòΪÊý×é¿É±»¶à¸öSortFields ÅÅÐò£¬Sort ¶ÔÏóµÄfields ÊôÐÔ¾ÍÊÇÒ»¸öÊý×é¡£ÕâЩsort ´´½¨Ò»
¸ö²ã¼¶µÄ½á¹¹£¬ËùÓжÔÏó½øÐзÖ×éÅÅÐò£¬Ïȸù¾Ýfield ÊôÐÔÀïµÄµÚÒ»¸öSortField ¶ÔÏó£¬ÔÙµÚ
Ò»¸ö£¬ÒÔ´ËÀàÍÆ¡£Õâ¸öÀý×Ó´úÂëÏȸù¾Ýregions ÔÙstates ¶Ô¼¯ºÏ½øÐÐÅÅÐò£º
coll = new ArrayCollection{[{city:"Cleveland", state:"Ohio", region:"East"},{city:"Sacramento", state:"California", region:"West"},{city:"Atlanta",state:"Georgia", region:"South"},{city:"Columbus", state:"Ohio", region:"East"}]);
var sort:Sort = new Sort();
sort.fields = [new SortField("region"), new SortField("state")];
coll.sort = sort;
coll.refresh();
¶Ô¼¯ºÏµÄÈÕÆÚÀàÐÍÊý¾Ý½øÐÐÅÅÐò,ʹÓÃmx.utils.ObjectUtil ÀàµÄdateCompare ·½·¨±È½ÏÈÕÆÚ¡£
ObjectUtil ÀàÌṩһ¸ödateCompare ·½·¨ÓÃÓÚ¼ì²âÁ½¸öDate ¶ÔÏóÄĸö¸üÔç¡£Äã¿ÉÒÔÓÃ
ObjectUtil.dateCompare ·½·¨À´±È½ÏÁ½¸öÈÕÆڵĴóС¡£dateCompare ·½·¨·µ»Ø1, 0, »ò
-1£ºÈç¹ûֵΪnull »òÏàµÈ·µ»Ø0£¬Èç¹ûµÚÒ»¸öֵΪnull »òСÓÚµÚ¶þ¸öÖµ·µ»Ø1£¬Èç¹ûµÚ¶þ¸öÖµ
Ϊnull »òСÓÚµÚÒ»¸öÖµ·µ»Ø-1£º
import mx.collections.Sort;
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;
private function sortFunction(a:Object, b:Object, fields:Array = null):int {
var tempDateA:Date = new Date(Date.parse(a.dob));
var tempDateB:Date = new Date(Date.parse(b.dob));
return ObjectUtil.dateCompare(tempDateA, tempDateB);
}
private var arrColl:ArrayCollection;
private function init():void {
arrColl = new ArrayCollection([{name:"Josh",dob:"08/17/1983"},{name:"John",dob:"07/30/1946"},{name:"John", dob:"07/30/1990"},{name:"John",dob:"07/30/1986"}]);
var sort:Sort = new Sort();
sort.compareFunction = sortFunction;
arrColl.sort = sort;
arrColl.refresh();
trace(arrColl);
}


Ïà¹ØÎĵµ£º

FlexµÄsocketÓëjavaʹÓÃamf3½øÐÐͨÐÅ

amf3,adobe´´Á¢µÄÊý¾Ý¸ñʽÓÉÓÚʹÓöþ½øÖÆ,ûÓÐÁËxmlµÈÈßÓàµÄ×Ö·ûÊý¾ÝÁ¿»áÉٺܶà!¶øÇҺܶà²âÊÔ±¨¸æ¾ù²â³öamf´«µÝЧ¹ûºÜ¸ß.
Õâ´ÎÊÇʹÓÃFlexµÄSocketÀàÓëjavaµÄ·þÎñ¶Ë½øÐÐͨÐÅ,
²½ÖèÊÇ:
¿Í»§¶ËÓÃsocketÀàÁ¬½Ójava·þÎñÆ÷,
ʹÓòéѯ×Ö·û´®½øÐÐÇëÇó,
java½«Êý¾Ý·âװΪhashmap,×îºó½«hashmapÓÃamfoutputstreamÊä³öÖÁflexµÄ¿Í» ......

Flexѧϰ£¨Ò»£©

½øÈëÄêÄ©£¬ÏîÄ¿Ò²¿ª·¢µÃ²î²»¶àÁË£¬Ö»ÊÇż¶ûÐèÒª³ö²î°²×°ÎÒÃÇϵͳ£¬µ±È»³ö²îÊÇÄÐÈËÃǵÄÊ£¬Ò²¾Í²»»áÈÃÎÒ³ö²îÁË£¬Òò¶ø×î½üʱ¼ä±È½Ï³äÔ££¬¾Í½è´Ë»ú»áѧϰÁËÒ»ÏÂFlex¡£¸Õ¿ªÊ¼Ñ§£¬ÊǸù¾ÝFlex3ȨÍþÖ¸ÄϵÄÊÓƵ½Ì³ÌÀ´µÄ£¬µÚÒ»½²Ñ§ÍêÁË£¬¸Ð¾õ»¹±È½ÏÈÝÒ×£¬µÚ¶þ½²Ò»Ö±Ã»ÏÂÏÂÀ´£¬ËùÒÔÏȶԵÚÒ»½²Ñ§µÄ×ö¸ö±Ê¼Ç¡£
Ò»¡¢Ð½¨¹¤³Ì£ºFile&mdas ......

flexºÍsocketͨÐŵĿçÓòÎÊÌâ½â¾ö·½°¸

flexºÍC++·þÎñÆ÷ͨÐÅ¡£ÒòΪ°²È«É³Â©ÎÊÌ⣬µ±swfλÓÚA·þÎñÆ÷£¬C++·þÎñÆ÷³ÌÐòλÓÚB·þÎñÆ÷ʱ¡£
ÕâʱswfºÍB·þÎñÆ÷½¨Á¢Socket½¨Á¢Á¬½Ó»á²úÉú¿çÓòÎÊÌâ¡£
½â¾ö·½·¨ÈçÏÂ
swf½¨Á¢socketʱ»áÏÈ·¢ÆðÒ»¸öÇëÇó¿çÓòÎļþµÄÇëÇó:"<policy-file-request/>"
·þÎñÆ÷½ÓÊÕµ½ºó·¢ËÍ×Ö·û´®
<?xml version="1.0"?>
<cross-doma ......

FlexºÍAIRÖеÄÀ¬»ø»ØÊÕʵ¼ùÖ®¶ÔÏ󻺴æ[ÒëÎÄ]

Ô­ÎÄ£ºhttp://www.riameeting.com/node/587
ÀïÃæÓÐÒ»¾ä×ܽáÐԵĻ°:
ÉèÖÃÒ»¸ö¶ÔÏóΪnull²»Ò»¶¨Äܹ»ÊÍ·ÅËüÕ¼ÓõÄÄڴ攡£ÕâÈ¡¾öÓÚflashÖÐÒѾ­ÊµÏÖµÄÀ¬»ø»ØÊյķ½Ê½£¬GCÓÉÖØ·ÖÅä´¥·¢¶ø²»ÊÇÓÉɾ³ý´¥·¢£¬ÕâÒâζ×ÅGCÖÜÆÚÔÚÄãÉùÃ÷new Object()µÄʱºòÔËÐжø²»ÊÇÄãÉèÖÃËüΪnullʱÔËÐС£
Ò²¾ÍÊÇ˵ÔÚnew ¶ÔÏóʱ²ÅÖØзÖÅäÄ򫾣 ......

FlexÍÏק Á½¸öListÖ®¼äÍÏק

FlexÍÏק-Á½¸öListÖ®¼äÍÏק
¹Ø¼ü×Ö: flexÍÏק, list
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationHandler();">
<mx:Script>
<![CDATA[
import mx.events.DragEvent;
imp ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ