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

Flex httpservice·µ»ØÖµÀàÐͺʹ¦Àí

·µ»ØÊý¾ÝµÄ¸ñʽresultFormatÓм¸ÖÖÀàÐÍ£¬object¡¢array¡¢xml¡¢flashvars¡¢textºÍe4x£¬Ä¬ÈϵÄÉèÖÃΪobject¡£
RESULT_FORMAT_ARRAY : String = "array"
[] ½á¹û¸ñʽ“array”Óë“object”ÏàËÆ£¬µ«ÊÇÆä·µ»ØµÄֵʼÖÕΪÊý×飻ÕâÑù£¬Èç¹û´Ó½á¹û¸ñʽ“object”·µ»ØµÄ½á¹ûÉв»ÊÇÊý×飬Ôò½«°Ñ¸ÃÏîÄ¿Ìí¼ÓΪһ¸öÐÂÊý×éµÄµÚÒ»¸öÏîÄ¿¡£
RESULT_FORMAT_E4X : String = "e4x"
[] ½á¹û¸ñʽ“e4x”Ö¸¶¨·µ»ØµÄÖµÊÇÒ»¸ö XML ʵÀý£¬´ËʵÀý¿ÉÒÔʹÓà ECMAScript for XML (E4X) ±í´ïʽ·ÃÎÊ¡£
RESULT_FORMAT_FLASHVARS : String = "flashvars"
[] ½á¹û¸ñʽ“flashvars”Ö¸¶¨·µ»ØµÄÖµÊÇ°üº¬ÓÉ & ·ûºÅ·Ö¸ôµÄÃû³Æ=Öµ¶ÔµÄÎı¾£¬¸ÃÎı¾±»·ÖÎöΪ ActionScript ¶ÔÏó¡£
RESULT_FORMAT_OBJECT : String = "object"
[] ½á¹û¸ñʽ“object”Ö¸¶¨·µ»ØµÄÖµÊÇ XML£¬µ«°´ÕÕ ActionScript ¶ÔÏóÊ÷·ÖÎö¡£
RESULT_FORMAT_TEXT : String = "text"
[] ½á¹û¸ñʽ“text”Ö¸¶¨ ½á¹ûÎı¾Ó¦ÎªÎ´¾­´¦ÀíµÄ×Ö·û´®¡£
RESULT_FORMAT_XML : String = "xml"
[] ½á¹û¸ñʽ“xml”Ö¸¶¨½á¹ûÓ¦×÷ΪָÏò¸¸ flash.xml.XMLDocument µÄµÚÒ»¸ö×ÓÏîµÄ flash.xml.XMLNode ʵÀý·µ»Ø¡£
ÔÚ MXML ÎļþÖÐʹÓà <mx:HTTPService> ±êÇ©´ú±í HTTPService ¶ÔÏó¡£µ±µ÷Óà HTTPService ¶ÔÏóµÄ send() ·½·¨Ê±£¬½«·¢³ö¶ÔÖ¸¶¨ URL µÄ HTTP ÇëÇ󣬲¢ÇÒ·µ»Ø HTTP ÏìÓ¦¡£¿ÉÒÔÑ¡ÔñÏòÖ¸¶¨ URL ´«µÝ²ÎÊý¡£Èç¹ûûÓÐʹÓûùÓÚ·þÎñÆ÷µÄ´úÀí·þÎñ£¬ÔòÖ»ÄÜʹÓà HTTP GET »ò POST ·½·¨¡£Èç¹û½« useProxy ÊôÐÔÉèÖÃΪ true ²¢Ê¹ÓûùÓÚ·þÎñÆ÷µÄ´úÀí·þÎñ£¬Ôò»¹¿ÉÒÔʹÓà HTTP HEAD¡¢OPTIONS¡¢TRACE ºÍ DELETE ·½·¨¡£
Ïêϸ³ö´¦²Î¿¼£ºhttp://www.jb51.net/article/17162.htm


Ïà¹ØÎĵµ£º

Flex ºÍ.NETЭͬ¿ª·¢ÀûÆ÷FluorineFx

 ÔÚ±¾ÏµÁÐÇ°Ã漸ƪÎÄÕÂÖзֱð½éÉÜÁËͨ¹ýWebService¡¢HTTPService¡¢URLLoaderÒÔ¼°FielReferenceµÈ×é¼þ
»òÀàÀ´Íê³ÉFlexÓë.NET·þÎñ¶ËµÄͨÐŵÄÏà¹Ø֪ʶµã¡£Í¨¹ýÕâЩ·½Ê½À´Íê³ÉÓë·þÎñ¶ËµÄͨÐÅÊǷdz£·½±ãºÍ¼òµ¥µÄ£¬µ«ÓÐËûµÄȱµã¾ÍÊÇͨÐÅÊý¾ÝÁ¿½ÏС£¬ÈçÒª´«
Êä´óÁ¿µÄÊý¾Ý»òÊÇʵÏÖ²»Í¬¶ÔÏóµÄÐòÁл¯´«Ê䣬ËüÃÇÔòÂú×ã²»ÁËÎÒÃǵ ......

Flex Æô¶¯»ù±¾Á÷³Ì


First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the ......

Flex ÖÐÐèÒª¼ÇסµÄһЩ¶«Î÷

Ò»¡¢Application³£ÓõÄʼþ
initialize=============>³õʼ»¯
createcomplate==========>ÔªËؼÓÔØÍê
initialize·¢ÉúÔÚcreatecomplate֮ǰ¡£
¶þ¡¢Êý¾ÝÇëÇó˵Ã÷
HTTPService==========>httpÊý¾ÝÇëÇó¡£
SOAP(Simple Object Access Protocal)=======> webService
AMF(Adobe Action Message Format)========&g ......

Flexʼþ»úÖÆ»ù´¡(Ò»)

ºÜ¶à¿ª·¢ÈËÔ±¶¼ÖªµÀÈçºÎʹÓÃʼþ»úÖÆ£¬µ«È´²»Àí½âʼþ»úÖƵĻù±¾¹¤×÷Ô­Àí¡£ÔÚÕâÀïÎÒÃÇ̽ÌÖÒ»ÏÂActionScript 3µÄʼþ»úÖÆ(ÎÞÂÛÊÇÐÂÊÖ»¹ÊÇÀÏÊÖ£¬ÎÒÏàÐÅ¿´µ½×îºó¿Ï¶¨¶ÔÄãÓÐËù°ïÖú )¡£
1. Ê×ÏÈÀ´¿´Ò»ÏÂʼþ»úÖÆÖеļ¸¸ö»ù±¾¸ÅÄ
event objects(ÕâÀïÎÒÃǹÃÇÒ½ÐËüʼþ¶ÔÏó)£ºËùÓеÄʼþ¶ÔÏó¶¼ÊÇflash.events.Event»òÕßÆä×ÓÀà¡ ......

Flexʼþ»úÖÆ»ù´¡(¶þ)

4. Àí½âʼþ½×¶Î(Event Phases) ÎÒÃÇ°Ñʼþ´¥·¢Ô´·ÖΪÁ½ÀࣺһÀàÊÇÄÇЩÏÔʾÔÚ½çÃæÖеÄÔªËØÅ׳öµÄʼþ£¬Ò»ÀàÊÇÄÇЩ²»ÔÚ½çÃæÖÐÏÔʾµÄÔªËØÅ׳öµÄʼþ¡£ºÜ¼òµ¥£¬¾Ù¸öÀý×Ó£ºµÚÒ»ÀàÈçURLLoader¶ÔÏóÈ¥loadͼƬ»òÆäËû×ÊÔ´ËùÅ׳öµÄÈçcompleteʼþ£¬¾ÍÊôÓÚµÚÒ»Àà¡£½çÃæÉϵÄÒ»¸ö°´Å¥ËùÅ׳öµÄclickʼþ¾ÍÊǵڶþÀ࣬Ëü»á´¥·¢Ò»¸öʼþÁ÷£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ