锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区二区三区精品视频 ,777亚洲精品乱码久久久久久,亚洲伊人色欲综合网http://www.tkk7.com/mstar/category/1720.html鎼炶蔣浠跺紑鍙戝氨鍍忚寮哄ジ,濡傛灉涓嶈兘鍙嶆姉,灝變韓鍙楀畠鍚э紒zh-cnSat, 02 Jun 2007 03:13:06 GMTSat, 02 Jun 2007 03:13:06 GMT60Flex緙栫▼妯″瀷--杞創http://www.tkk7.com/mstar/archive/2007/05/31/121154.html榛戠伒榛戠伒Thu, 31 May 2007 06:16:00 GMThttp://www.tkk7.com/mstar/archive/2007/05/31/121154.htmlhttp://www.tkk7.com/mstar/comments/121154.htmlhttp://www.tkk7.com/mstar/archive/2007/05/31/121154.html#Feedback0http://www.tkk7.com/mstar/comments/commentRss/121154.htmlhttp://www.tkk7.com/mstar/services/trackbacks/121154.html
杞創鑷?http://blog.csdn.net/mylxiaoyi/archive/2007/05/16/1611579.aspx
Flex鍖呭惈Flex綾誨簱錛孧XML浠ュ強ActionScript紼嬪簭璇█錛屽涓嬭〃鎵紺猴細

鍖呭惈鍦‵lex涓紝浣嗘槸鍗村茍娌℃湁鍦ㄤ笂鍥句腑鏄劇ず鐨勮繕鏈塅lex緙栬瘧浠ュ強Flex璋冭瘯鍣ㄣ?br />鎴戜滑浣跨敤MXML涓嶢ctionScript鐨勭粍鍚堟潵緙栧啓Flex紼嬪簭銆侻XML鍜孉ctionScript紼嬪簭璇█閮界粰浜嗘垜浠闂瓼lex綾誨簱鐨勮兘鍔涖備嬌鐢∕XML鏉ュ畾涔夌▼搴忕殑鐢ㄦ埛鐣岄潰鍏冪礌錛屼嬌鐢ˋctionScript鏉ュ畾涔夊鎴烽昏緫涓庤繃紼嬫帶鍒躲?br />Flex綾誨簱鍖呭惈Flex緇勪歡錛岀鐞嗗櫒涓庤涓恒備嬌鐢ㄥ熀浜庣粍浠剁殑Flex寮鍙戞ā鍨嬶紝寮鍙戣呭彲浠ュ悎騫墮緙栬瘧鐨勭粍浠訛紝鍒涘緩鏂扮殑緇勪歡錛屾垨鑰呮槸緇勫悎棰勭紪璇戠殑緇勪歡涓哄鍚堢粍浠躲?/div>

Flex綾誨簱涓嶮XML鍜孉ctionScript鐨勫叧緋?/strong>
Flex鏄綔涓篈ctionScript綾誨簱鏉ュ疄鐜扮殑銆傝繖涓被搴撳寘鍚粍浠訛紙瀹瑰櫒涓庢帶浠訛級錛岀鐞嗙被錛屾暟鎹湇鍔$被浠ュ強鍏朵粬鐗規х殑綾匯傛垜浠嬌鐢∕XML鍜孉ctionScript璇█閰嶅悎綾誨簱鏉ュ紑鍙戠▼搴忋?br />MXML 鏍囩涓嶢ctionScript綾繪垨鏄被鐨勫睘鎬х浉瀵瑰簲銆侳lex鍒嗘瀽MXML鏍囩錛屽茍涓旂紪璇戝寘鍚浉搴擜ctionScript瀵硅薄鐨凷WF鏂囦歡銆備緥濡傦紝 Flex鎻愪緵浜咥ctionScript Button綾繪潵瀹氫箟Flex鎸夐挳鎺т歡銆傚湪MXML涓紝鎴戜滑鍙互鐢ㄤ笅闈㈢殑MXML璇彞鏉ュ垱寤轟竴涓寜閽帶浠訛細
<mx:Button label="Submit"/>
褰撴垜浠嬌鐢∕XML鏍囩澹版槑浜嗕竴涓帶浠訛紝鎴戜滑灝卞垱寤轟簡閭d釜綾葷殑涓涓疄渚嬨傝繖涓狹XML璇彞鍒涘緩浜嗕竴涓寜閽璞★紝騫朵笖鍒濆鍖栬繖涓寜閽璞$殑label灞炴т負Submit瀛楃涓層?br />涓嶢ctionScript 綾葷浉瀵瑰簲鐨凪XML浣跨敤涓嶢ctionScript綾葷浉鍚岀殑鍛藉悕綰﹀畾銆傜被鍚嶄互涓涓ぇ鍐欏瓧姣嶅紑澶達紝鑰屼笖鍦ㄧ被鍚嶄腑浠ュぇ鍐欏瓧姣嶅垎闅斿崟璇嶃傛瘡涓涓狹XML鏍囩灞炴? 瀵瑰簲鐫ActionScript瀵硅薄鐨勪竴涓睘鎬э紝閫傚悎浜庡璞$殑涓縐嶉鏍鹼紝鎴栬呮槸榪欎釜瀵硅薄鐨勪竴涓簨浠剁洃鍚櫒銆?/div>

甯冨眬鎴戜滑鐨勭▼搴?/strong>
鎴戜滑浣跨敤浠h〃鐢ㄦ埛鐣岄潰鐨勭粍浠舵潵澹版槑Flex紼嬪簭鐨勭敤鎴風晫闈€傛湁涓ょ綾誨瀷鐨勭粍浠訛細鎺т歡涓庡鍣ㄣ傛帶浠舵槸紿椾綋鍏冪礌錛屽鎸夐挳錛屾枃鏈錛屽垪琛ㄦ銆傚鍣ㄦ槸灞忓箷涓婂寘鍚帶浠跺拰鍏朵粬瀹瑰櫒鐨勭煩褰㈠尯鍩熴?br />鍦‵lex鐨勬牴閮ㄦ槸鍗曚竴鐨勫鍣紝縐頒箣涓虹▼搴忓鍣紝榪欎唬琛ㄦ暣涓狥lash鎾斁鍣ㄧ殑鐣岄潰銆傝繖涓▼搴忓鍣ㄤ繚瀛樻墍鏈夌殑鍏朵粬鐨勪唬琛ㄥ璇濇錛岄潰鏉垮拰紿椾綋鐨勫鍣ㄣ?br />涓涓鍣ㄦ湁棰勫畾涔夌殑瑙勫垯鏉ュ竷灞浠栫殑瀛╁瓙瀹瑰櫒鍜屾帶浠訛紝鍖呮嫭灝哄浠ュ強浣嶇疆銆侳lex瀹氫箟浜嗗竷灞瑙勫垯鏉ョ畝鍖栧瘜緗戠粶紼嬪簭鐨勮璁′笌瀹炵幇錛岀劧鑰屼篃鎻愪緵浜嗚凍澶熺殑鐏墊椿鎬ф潵浣垮緱鎴戜滑鍙互鍒涘緩澶氭牱鐨勭▼搴忛泦鍚堛?br />浣跨敤棰勫畾涔夌殑甯冨眬瑙勫垯鐨勪竴涓紭鐐瑰氨鏄垜浠殑鐢ㄦ埛鍙互寰堝揩鐨勪範鎯垜浠殑紼嬪簭銆備篃灝辨槸璇達紝閫氳繃鏍囧噯鍖栫敤鎴蜂氦浜掔殑瑙勫垯錛屾垜浠殑鐢ㄦ埛灝變笉闇瑕佽冭檻濡備綍鏉ュ鑸▼搴忥紝鐩稿弽鍗村彲浠ラ泦涓簬紼嬪簭鎵鎻愪緵鐨勫唴瀹廣?br />鍙? 涓涓紭鐐瑰氨鏄垜浠笉蹇呭湪瀹氫箟瀵艱埅浠ュ強浣滀負璁捐涓閮ㄥ垎鐨勫竷灞瑙勫垯涓婅姳璐瑰ぇ閲忕殑鏃墮棿銆傜浉鍙嶏紝鎴戜滑鍙互闆嗕腑綺懼姏浜庢垜浠兂瑕佷紶閫掔殑淇℃伅浠ュ強鎴戜滑瑕佹彁渚涚粰鐢ㄦ埛鐨勯? 鎷╋紝騫朵笖涓嶉渶涓烘墍鏈夌敤鎴瘋涓虹殑緇嗚妭涓庣▼搴忓搷搴旀媴蹇冦傞氳繃榪欐牱鐨勬柟寮忥紝Flex鎻愪緵浜嗕竴涓粨鏋勫彲浠ヨ鎴戜滑蹇熷鏄撶殑浣跨敤涓板瘜鐨勭壒鎬т笌浜や簰闆嗗悎鏉ュ紑鍙戠▼搴忋?/div>

浣跨敤Flex Builder鏉ュ竷灞鎴戜滑鐨勭▼搴?/strong>
鎴? 浠彲浠ヤ嬌鐢‵lex Builder鏋勫緩Flex紼嬪簭鐨勭敤鎴風晫闈€傛垜浠彲浠ヤ嬌鐢‵lex Builder閫氳繃鍙鐨勭紪鐮佷笌璁捐宸ュ叿鏉ュ紑鍙慒lex涓嶢ctionScript紼嬪簭銆傛垜浠篃鍙互浣跨敤鍙互鎻愪緵浠g爜鎻愮ず涓庝唬鐮佽緟鍔╃壒鎬х殑緙栬緫緙栧啓 MXML錛孉ctionScript涓嶤SS浠g爜錛屼粠鑰屽府鍔╂垜浠殑寮鍙戝伐浣溿?br />鍦ㄨ繖涓紪杈戝櫒涓紝鎴戜滑鍙互鍒囨崲鍒拌璁℃ā寮忔潵鍙鍖栫殑寮鍙戞垜浠殑紼嬪簭錛屽湪璁捐鐢誨竷涓婁嬌鐢ㄥ鍣ㄤ笌緇勪歡錛屼嬌鐢ㄧ害鏉熸潵甯冨眬鎴戜滑鐨勭粍浠訛紝騫舵煡鐪嬭繍琛屾椂鐢ㄦ埛鐣岄潰鐨勮漿鍖栥傜劧鍚庢垜浠嬌鐢ㄥ畾鍒剁殑緙栬瘧鍣ㄦ潵鏋勫緩鎴戜滑鐨勫伐紼嬶紝騫朵笖浣跨敤闆嗘垚鐨勮皟璇曞伐鍏鋒潵璋冭瘯鎴戜滑鐨勫伐紼嬨?/div>

鍦∕XML涓畾涔夌敤鎴風晫闈?/strong>
鎴戜滑鐨勭▼搴忓彲浠ョ敱涓涓垨鏄涓狹XML鏂囦歡緇勬垚銆備嬌鐢ㄥ涓狹XML鏂囦歡鍙互淇冭繘浠g爜閲嶇敤錛岀畝鍖栨瀯寤哄鏉傜▼搴忕殑榪囩▼錛屽茍涓斾嬌寰楀涓紑鍙戣呰礎鐚悓涓涓伐紼嬪彉寰楁洿涓哄鏄撱?br />涓嬮潰鐨勪緥瀛愭槸涓涓狹XML紼嬪簭錛岃繖涓▼搴忎嬌鐢ㄤ竴涓寜閽帶浠舵潵瑙﹀彂浠庝竴涓枃鏈緭鍏ユ帶浠舵嫹璐濇枃鏈埌涓涓枃鏈尯鎺т歡錛?br />
<?xml聽version="1.0"聽encoding="utf-8"?>
<!--聽?xml聽tag聽must聽start聽in聽line聽1聽column聽1聽-->
<!--聽MXML聽root聽element聽tag.聽-->
<mx:Application聽xmlns:mx="http://www.adobe.com/2006/mxml">
聽聽聽聽
<!--聽Flex聽controls聽exist聽in聽a聽container.聽Define聽a聽Panel聽container.聽-->
聽聽聽聽
<mx:Panel聽title="My聽Application">
聽聽聽聽聽聽聽聽
<!--聽TextInput聽control聽for聽user聽input.聽-->
聽聽聽聽聽聽聽聽
<mx:TextInput聽id="myInput"聽width="150"聽text=""/>
聽聽聽聽聽聽聽聽
<!--聽Output聽TextArea聽control.聽-->
聽聽聽聽聽聽聽聽
<mx:TextArea聽id="myText"聽text=""聽width="150"/>
聽聽聽聽聽聽聽聽
<!--聽Button聽control聽that聽triggers聽the聽copy.聽-->
聽聽聽聽聽聽聽聽
<mx:Button聽id="myButton"聽label="Copy聽Text"/>
聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽
</mx:Panel>
</mx:Application>


榪欎釜紼嬪簭絎竴琛屾寚鏄庝簡XML澹版槑錛岃屼笖蹇呴』鏀懼湪MXML鏂囦歡鐨勭涓琛岋紝絎竴鍒椼?br />絎簩琛屼互<mx:Application>鏍囩寮濮嬶紝榪欐槸Flex紼嬪簭鐨勬牴鍏冪礌銆傝繖涓爣絳懼寘鍚簡Flex鍚嶅瓧絀洪棿澹版槑銆傚湪璧峰涓庣粨鏉熺殑<mx:Application>鏍囩涔嬮棿鐨勯儴鍒嗗畾涔変簡Flex紼嬪簭銆?br />涓嬪浘婕旂ず浜嗗湪Flash鎾斁鍣ㄤ腑榪愯榪欎釜紼嬪簭鐨勬晥鏋滃浘錛?/div>

姝e榪欐浠g爜鎵鍐欑殑錛岃繖涓緥瀛愬竷灞浜嗘垜浠殑鐢ㄦ埛鐣岄潰錛屼絾鏄嵈騫舵病鏈夊寘鍚粠鏂囨湰杈撳叆妗嗘帶浠跺埌鏂囨湰鍖烘帶浠剁殑鎷瘋礉閫昏緫銆?/div>

鍚慒lex紼嬪簭涓坊鍔燗ctionScript
鎴戜滑鍙互涓轟簡涓嬪垪鐩殑浣跨敤ActionScript
澶勭悊浜嬩歡 Flex鐢ㄦ埛鐣岄潰鏄簨浠墮┍鍔ㄧ殑銆備緥濡傦紝褰撶敤鎴烽夋嫨涓涓寜閽椂錛岃繖涓寜閽敓鎴愪竴涓簨浠躲傛垜浠湪ActionScript涓畾涔夊悕涓轟簨浠剁洃鍚櫒鐨勫嚱鏁版潵澶勭悊浜嬩歡銆傛垜浠殑浜嬩歡鐩戝惉鍣ㄥ彲浠ユ墦寮涓涓獥鍙o紝鎾斁SWF鏂囦歡錛屾垨鑰呮槸鎵ц鎴戜滑鐨勭▼搴忔墍蹇呴』鐨勪換浣曞姩浣溿?br />澶勭悊閿欒 鎴戜滑鍦ˋctionScript澶勭悊榪愯鏃墮敊璇傛垜浠彲浠ユ嫻嬫暟鎹獙璇侀敊璇紝鍚戠敤鎴峰彂閫侀敊璇俊鎭紝鍚戞湇鍔″櫒閲嶆柊鎻愪氦璇鋒眰錛屾垨鑰呮槸鎵ц鍩轟簬鎴戜滑紼嬪簭鐨勫叾浠栦簨浠躲?br />鍦∕XML璇彞涓悜Flex鎺т歡緇戝畾鏁版嵁瀵硅薄 鎴戜滑鍙互浣跨敤鏁版嵁緇戝畾浠庝竴涓狥lex鎺т歡緇勭粐鏁版嵁妯″瀷錛屾垨鏄粠鏁版嵁妯″瀷緇勭粐緇勪歡錛屾垨鑰呮槸浠庝竴涓粍浠跺悜鍙︿竴涓粍浠舵嫹璐濇暟鎹?br />瀹氫箟鑷畾涔夌粍浠?鎴戜滑鍙互浠嶧lex緇勪歡綾誨眰嬈$戶鎵挎潵鍒涘緩閫傚悎鎴戜滑紼嬪簭闇姹傜殑緇勪歡銆?br />涓嬮潰鐨勪緥瀛愭槸鍦ㄥ墠涓涓緥瀛愮殑鍩虹涓婃墍鍋氱殑鏇存敼錛屼負鎸夐挳鐨刢lick浜嬩歡娣誨姞浜嬩歡鐩戝惉鍣ㄣ備竴涓簨浠剁洃鍚櫒涓轟簡鍝嶅簲鐢ㄦ埛鐨勪簨浠惰屾墽琛岀殑ActionScript浠g爜銆傚湪鎴戜滑榪欎釜渚嬪瓙涓殑浜嬩歡鐩戝惉鍣ㄦ槸褰撶敤鎴烽夋嫨鎸夐挳鎺т歡鏃朵粠鏂囨湰杈撳叆鎺т歡鍚戞枃鏈尯鎷瘋礉鏂囨湰錛?br />
<?xml聽version="1.0"聽encoding="utf-8"?>
<!--聽?xml聽tag聽must聽start聽in聽line聽1聽column聽1聽-->
<!--聽MXML聽root聽element聽tag.聽-->
<mx:Application聽xmlns:mx="http://www.adobe.com/2006/mxml">
聽聽聽聽
<!--聽Flex聽controls聽exist聽in聽a聽container.聽Define聽a聽Panel聽container.聽-->
聽聽聽聽
<mx:Panel聽title="My聽Application">
聽聽聽聽聽聽聽聽
<!--聽TextInput聽control聽for聽user聽input.聽-->
聽聽聽聽聽聽聽聽
<mx:TextInput聽id="myInput"聽width="150"聽text=""/>
聽聽聽聽聽聽聽聽
<!--聽Output聽TextArea聽control.聽-->
聽聽聽聽聽聽聽聽
<mx:TextArea聽id="myText"聽text=""聽width="150"/>
聽聽聽聽聽聽聽聽
<!--聽Button聽control聽that聽triggers聽the聽copy.聽-->
聽聽聽聽聽聽聽聽
<mx:Button聽id="myButton"聽label="Copy聽Text"
聽聽聽聽聽聽聽聽聽聽聽聽click
="myText.text=myInput.text;"/>
聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽
</mx:Panel>
</mx:Application>

鍓? 涓涓緥瀛愬湪MXML浠g爜涓洿鎺ユ彃鍏ヤ簡ActionScript浠g爜銆傝櫧鐒惰繖瀵逛簬涓鎴栨槸涓よ鐨凙ctionScript浠g爜鍙互宸ヤ綔鐨勫緢濂斤紝浣嗘槸瀵逛簬鏇翠負澶? 鏉傜殑閫昏緫錛岄氬父鎴戜滑浼氬湪<mx:Script>鍧椾腑瀹氫箟鎴戜滑鐨凙ctionScript錛屽涓嬮潰鐨勪緥瀛愭墍紺猴細
<?xml聽version="1.0"聽encoding="utf-8"?>
<!--聽?xml聽tag聽must聽start聽in聽line聽1聽column聽1聽-->
<!--聽MXML聽root聽element聽tag聽-->
<mx:Application聽xmlns:mx="http://www.adobe.com/2006/mxml">
聽聽聽聽
<mx:Script>
聽聽聽聽聽聽聽聽
<![CDATA[
聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽//聽Define聽an聽ActionScript聽function.
聽聽聽聽聽聽聽聽聽聽聽聽private聽function聽duplicate():void聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽myText.text=myInput.text;
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
]]>
聽聽聽聽
</mx:Script>
聽聽聽聽
<!--聽Flex聽controls聽exist聽in聽a聽container.聽Define聽a聽Panel聽container.聽-->
聽聽聽聽
<mx:Panel聽title="My聽Application">
聽聽聽聽聽聽聽聽
<!--聽TextInput聽control聽for聽user聽input.聽-->
聽聽聽聽聽聽聽聽
<mx:TextInput聽id="myInput"聽width="150"聽text=""/>
聽聽聽聽聽聽聽聽
<!--聽Output聽TextArea聽control.聽-->
聽聽聽聽聽聽聽聽
<mx:TextArea聽id="myText"聽text=""聽width="150"/>
聽聽聽聽聽聽聽聽
<!--聽Button聽control聽that聽triggers聽the聽copy.聽-->
聽聽聽聽聽聽聽聽
<mx:Button聽id="myButton"聽label="Copy聽Text"
聽聽聽聽聽聽聽聽聽聽聽聽click
="duplicate();"/>
聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽
</mx:Panel>
</mx:Application>

鍦? 榪欎釜渚嬪瓙涓紝鎴戜滑浣夸簨浠剁洃鍚櫒浣滀負涓涓狝ctionScript鍑芥暟鏉ュ疄鐜般侳lex涓轟簡鍝嶅簲鐢ㄦ埛閫夋嫨鎸夐挳鎺т歡璋冪敤榪欎釜鍑芥暟銆傝繖縐嶆妧鏈嬌寰楁垜浠彲浠ュ皢鎴戜滑 鐨凪XML浠g爜浠庢垜浠殑ActionScript浠g爜涓垎紱誨嚭鏉ャ備負浜嗗鍔犵▼搴忕殑妯″潡鎬ф垜浠篃鍙互閫夋嫨灝嗘垜浠殑紼嬪簭鍒嗕負澶氫釜鏂囦歡銆?/div>

浣跨敤鏁版嵁緇戝畾
Flex涓轟簡緇勪歡涔嬮棿灞炴х殑緇戝畾錛屾垨鏄埌鏁版嵁妯″瀷鐨勭粦瀹氭彁渚涗簡綆鍗曠殑璇硶銆傚湪涓嬮潰榪欎釜渚嬪瓙涓紝鑺辨嫭鍙蜂腑鐨勫煎皢鏂囨湰鍖虹殑text灞炴х粦瀹氬埌浜嗘枃鏈緭鍏ユ帶浠剁殑text灞炴с傚綋鐢ㄦ埛鍦ㄦ枃鏈緭鍏ユ帶浠朵腑杈撳叆鏂囨湰鏃訛紝浠栦細鑷姩鐨勬嫹璐濆埌鏂囨湰鍖烘帶浠訛紝濡備笅闈㈢殑渚嬪瓙鎵紺猴細
<?xml聽version="1.0"聽encoding="utf-8"?>
<!--聽?xml聽tag聽must聽start聽in聽line聽1聽column聽1聽-->
<!--聽MXML聽root聽element聽tag.聽-->
<mx:Application聽xmlns:mx="http://www.adobe.com/2006/mxml">
聽聽聽聽
<!--聽Flex聽controls聽exist聽in聽a聽container.聽Define聽a聽Panel聽container.聽-->
聽聽聽聽
<mx:Panel聽title="My聽Application">
聽聽聽聽聽聽聽聽
<!--聽TextInput聽control聽for聽user聽input.聽-->
聽聽聽聽聽聽聽聽
<mx:TextInput聽id="myInput"聽width="150"聽text=""/>
聽聽聽聽聽聽聽聽
<!--聽Output聽TextArea聽control.聽-->
聽聽聽聽聽聽聽聽
<mx:TextArea聽id="myText"聽text="{myInput.text}"聽width="150"/>
聽聽聽聽
</mx:Panel>
</mx:Application>

鎺у埗紼嬪簭鏄劇ず
Flex瀹氫箟鎴戜滑鍦ㄧ▼搴忎腑鍙互浣跨敤鐨勯粯璁ゆ樉紺猴紝鎴栬呮槸淇敼鏉ュ畾涔夋垜浠壒瀹氱殑鏄劇ず銆備綔涓轟慨鏀規紨紺虹殑涓閮ㄥ垎錛屾垜浠彲浠ヤ慨鏀逛笅闈㈢殑涓浜涙垨鏄叏閮細
灝哄 涓涓粍浠舵垨鏄▼搴忕殑楂樺害鎴栨槸瀹藉害銆傛墍鏈夌殑緇勪歡閮芥湁涓涓粯璁ょ殑灝哄銆傛垜浠彲浠ヤ嬌鐢ㄩ粯璁ょ殑灝哄錛屾寚瀹氭垜浠嚜宸辯殑灝哄錛屾垨鑰呬綔涓哄竷灞鎴戜滑紼嬪簭鐨勪竴閮ㄥ垎璁〧lex閲嶆柊璋冩暣涓涓粍浠剁殑灝哄銆?br />鏍煎紡 鐗規ч泦鍚堬紝渚嬪瀛椾綋錛屽瓧鍙鳳紝鏂囨湰瀵歸綈灞炴э紝棰滆壊銆傝繖涓庡湪灞傚彔鏍峰紡琛?CSS)瀹氫箟涓庝嬌鐢ㄧ殑鐩稿悓銆?br />鐨偆 鎺у埗緇勫悎鏄劇ず鐨勭鍙楓傜毊鑲ゅ寲灝辨槸閫氳繃淇敼鎴栨槸鏇挎崲浠栫殑鍙鍖栧厓绱犳潵鏀瑰彉涓涓粍浠舵樉紺虹殑榪囩▼銆傝繖浜涘厓绱犲彲浠ュ浘鍍忥紝SWF鏂囦歡錛屾垨鑰呮槸鍖呭惈緇樼敾API鏂規硶鐨勭被鏂囦歡緇勬垚銆?br />琛屼負 紼嬪簭鎴栨槸鐢ㄦ埛琛屼負寮曡搗鐨勫浜庝竴涓狥lex緇勪歡鐨勫彲瑙佺殑鎴栨槸鍙惉鐨勫彉鍖栥傝涓虹殑渚嬪瓙濡傚熀浜庨紶鏍囩Щ鍔ㄧ偣鍑葷殑縐誨姩鎴栨槸緇勪歡灝哄鐨勯噸鏂拌皟鏁淬?br />瑙嗗浘鐘舵?/strong> 鍦ㄨ澶氬瘜緗戠粶紼嬪簭涓紝鐣岄潰鐨勬敼鍙樺熀浜庣敤鎴鋒墍鎵ц鐨勪換鍔°傝鍥劇姸鎬佸彲浠ヨ鎴戜滑閫氳繃淇敼鍩哄唴瀹規潵鍙樺寲涓涓粍浠剁殑鍐呭鍜屾樉紺烘垨鑰呮槸紼嬪簭銆?br />杞寲 杞寲瀹氫箟浜嗚鍥劇姸鎬佺殑鏀瑰彉濡備綍鏄劇ず鍦ㄥ睆騫曚笂銆傛垜浠嬌鐢ㄧ壒鏁堢被錛岀粨鍚堝鐞嗚漿鍖栫殑鏄懼紡鏁堟灉璁捐鏉ュ畾涔夎漿鍖栥?/div>

浣跨敤鏁版嵁鏈嶅姟宸ヤ綔
Flex 琚璁$敤鏉ヤ笌鍙互璁塊棶鏈湴鍜岃繙紼嬫湇鍔$閫昏緫鐨勬湇鍔¤繘琛屼氦浜掋備緥濡傦紝涓涓狥lex紼嬪簭鍙互浣跨敤AMF鏉ヨ繛鎺ヤ嬌鐢ㄧ畝鍗曞璞¤闂崗璁?SOAP)鐨勭綉緇滄湇鍔★紝榪? 鍥瀀ML鐨凥TTP URL錛屾垨鑰呮槸Flex鏁版嵁鏈嶅姟錛屼笌浣嶄簬涓嶧lex鍚屼竴涓▼搴忔湇鍔″櫒涓婄殑Java瀵硅薄銆侻XML鎻愪緵鏁版嵁璁塊棶鐨勭粍浠剁О涔嬩負鏁版嵁鏈嶅姟緇勪歡銆侻XML鍖呭惈涓嬪垪 鐨勪竴浜涙暟鎹湇鍔$粍浠訛細
WebService 鎻愪緵鍒板熀浜嶴OAP鐨勭綉緇滄湇鍔$殑璁塊棶銆?br />HTTPService 鎻愪緵鍒拌繑鍥炴暟鎹殑HTTP URL鐨勮闂?br />RemoteObject 鎻愪緵鍒頒嬌鐢ˋMF鍗忚鐨凧ava瀵硅薄鐨勮闂傝繖涓夐」鍙湪Flex鏁版嵁鏈嶅姟鎴栨槸Macromedia ColdFusion MX 7.0.2涓彲鐢ㄣ?br />鍦? 鎴戜滑鐨凢lex紼嬪簭涓夋嫨濡備綍鏉ヨ闂暟鎹獎鍝嶇潃鎴戜滑紼嬪簭鐨勬ц兘銆傚洜涓篎lex紼嬪簭鏄湪絎竴嬈¤姹備箣鍚庣紦瀛樺湪嫻忚鍣ㄤ腑鐨勶紝褰撶▼搴忚繍琛屾椂錛屾暟鎹闂槸褰卞搷紼嬪簭 鎬ц兘鐨勪富瑕佸師鍥犮備負浜嗗悜鐢ㄦ埛浼犻掓暟鎹瓼lex鎻愪緵浜嗗嚑縐嶈В鍐蟲柟妗堛備粬灝嗘暟鎹氦緇欒皟鐢ㄥ湪Flex綾昏礬寰勪腑瑁呭叆鐨凧ava綾葷殑榪愯鏃舵湇鍔★紝鎴栬呮槸鍚戠綉緇滄湇鍔℃垨 鏄疕TTP鏈嶅姟鍣ㄥ彂閫佷唬鐞嗚姹傘?br />浣跨敤WebService緇勪歡鍏佽鎴戜滑浣跨敤鍩轟簬SOAP鐨勬柟娉曪紝浣嗘槸浠栧茍涓嶆繪槸浜х敓鏈浼樼殑鎬ц兘銆傚悓鏃訛紝浣跨敤SOAP緙栫爜鐨勯澶刋ML闇瑕佹瘮AMF鎵鍋氱殑鏇村鐨勫唴瀹廣?br />緗戠粶鏈嶅姟涓殑SOAP鎬ц兘鍚屾椂渚濊禆浜庢垜浠殑緗戠粶鏈嶅姟鐨勫疄鐜般備笉鍚岀殑紼嬪簭鏈嶅姟鍣ㄤ嬌鐢ㄤ笉鍚岀殑緗戠粶鏈嶅姟鍚庣錛屾墍浠ユ垜浠細鐪嬪埌渚濊禆浜庝笉鍚屽疄鐜扮殑鎬ц兘銆傜悊瑙f垜浠殑瀹炵幇琛ㄧ幇濡備綍鐨勫敮涓鏂規硶灝辨槸瑁呭叆騫舵祴璇曟垜浠殑鏈嶅姟銆?br />鍦ㄨ澶氭儏鍐典笅錛屾垜浠殑閫夋嫨渚濊禆浜庢垜浠凡瀛樺湪鐨勭▼搴忎互鍙婃垜浠浣曢夋嫨灝嗕粬浠泦鎴愬埌鍚庡彴鏈嶅姟鍣ㄨ祫婧愪腑銆傜綉緇滄湇鍔$殑琛ㄧ幇鍦ㄥ緢澶х▼搴︿笂渚濊禆浜庢垜浠殑紼嬪簭鏈嶅姟鍣ㄧ殑緗戠粶鏈嶅姟寮曟搸鐨勫簳灞傚疄鐜幫紝鎵浠ユ垜浠簲瑁呭叆騫舵祴璇曚粬浠殑鎬ц兘銆?/div>

灝嗘垜浠暟鎹ā鍨嬩粠鎴戜滑鐨勮鍥句腑鍒嗙
涓轟簡娓呮鐨勫垎紱葷敤鎴風晫闈紝紼嬪簭鐩稿叧鐨勬暟鎹紝鏁版嵁鏈嶅姟錛屾垜浠彲浠ヤ嬌鐢‵lex鏁版嵁妯″瀷鏉ュ瓨鍌ㄦ帶鍒跺櫒涓庢暟鎹湇鍔′箣闂寸殑鏁版嵁銆傝繖縐嶄笁灞傝璁℃槸杈撳叆鏁版嵁涓庢暟鎹湇鍔″叡鍚屼綔鐢ㄧ殑緇撴灉銆?br />褰撴垜浠鍒掍竴涓▼搴忥紝鎴戜滑瑕佸喅瀹氱▼搴忓繀欏誨瓨鍌ㄧ殑鏁版嵁綾誨瀷浠ュ強榪欎簺鏁版嵁瑕佸浣曞鐞嗐傝繖鏈夊姪浜庢垜浠喅瀹氭垜浠渶瑕佷粈涔堢被鍨嬬殑鏁版嵁妯″瀷銆備緥濡傦紝鍋囪鎴戜滑鍐沖畾鎴戜滑鐨勭▼搴忓繀欏誨瓨鍌ㄩ【鍛樼殑鐩稿叧鏁版嵁銆備竴涓畝鍗曠殑欏懼憳妯″瀷鍙兘鍖呭惈濮撳悕錛岄儴闂ㄤ互鍙婇偖綆卞湴鍧灞炴с?br />涓 涓狥lex鏁版嵁妯″瀷鏄竴涓寘鍚垜浠敤鏉ュ瓨鍌ㄧ▼搴忕浉鍏蟲暟鎹殑灞炴х殑ActionScript瀵硅薄銆傛垜浠彲浠ュ皢鏁版嵁妯″瀷鐢ㄤ簬鏁版嵁楠岃瘉錛屼粠鑰屼粬鍙互鍖呭惈瀹㈡埛绔笟 鍔¢昏緫銆傛垜浠彲浠ュ湪MXML鎴栨槸ActionScript涓畾涔変竴涓暟鎹ā鍨嬨傚湪MVC璁捐妯″紡涓紝鏁版嵁妯″瀷浠h〃妯″瀷灞傘?br />鎴戜滑鍙互鍦∕XML鏍? 絳撅紝ActionScript鍑芥暟鎴栨槸ActionScript綾諱腑瀹氫箟鏁版嵁妯″瀷銆傚湪MXML涓紪鍐欑殑妯″瀷鐢ㄥ埄浜庡揩閫熷紑鍙戜笌綆鍖栨暟鎹瓨鍌紝浣嗘槸浠栦笉鑳芥彁渚? 浠諱綍棰濆鐨勫姛鑳斤紝鑰屾垜浠笉鍙互璁懼畾妯″瀷灞炴х殑鏁版嵁綾誨瀷銆傚鏋滄垜浠兂瑕佽瀹氭暟鎹被鍨嬩互鍙婁負棰濆鐨勫姛鑳芥彁渚涙柟娉曪紝鎴戜滑搴斾嬌鐢ㄥ熀浜嶢ctionScript鐨? 綾匯傚湪閫氬父鎯呭喌涓嬶紝鎴戜滑搴斾負浜嗙畝鍖栨暟鎹粨鏋勪嬌鐢ㄥ熀浜嶮XML鐨勬ā鍨嬶紝涓烘洿涓哄鏉傜殑緇撴瀯浠ュ強瀹㈡埛绔笟鍔¢昏緫浣跨敤ActionScript銆?/div>


榛戠伒 2007-05-31 14:16 鍙戣〃璇勮
]]>Flex+Webservice涓枃涔辯爜闂瑙e喅http://www.tkk7.com/mstar/archive/2005/06/18/6341.html榛戠伒榛戠伒Sat, 18 Jun 2005 14:34:00 GMThttp://www.tkk7.com/mstar/archive/2005/06/18/6341.htmlhttp://www.tkk7.com/mstar/comments/6341.htmlhttp://www.tkk7.com/mstar/archive/2005/06/18/6341.html#Feedback0http://www.tkk7.com/mstar/comments/commentRss/6341.htmlhttp://www.tkk7.com/mstar/services/trackbacks/6341.html浜庢槸涓婄綉鎵捐祫鏂?緇撴灉娌℃湁鎵懼埌flex+webservice鐨勶紝鍏朵粬鐨勫flex+rometeobject絳夌瓑鐨勫掓槸鏈夈備絾鏄緢澶氭渶緇堜篃娌℃湁璇村嚭鍚堥傜殑瑙e喅鍔炴硶銆傚緢澶氫漢璇磋鎶奺ncoding="utf-8"鏀規垚GBK銆丟B2312絳夌瓑錛屼絾鏄兘涓嶅鏁堬紝鐩稿弽鍘熸潵鐩存帴鍐欏湪component涓婄殑涓枃鍗存垚鐨勪貢鐮併備簬鏄垜瑙夊緱錛岄棶棰樹笉鏄嚭鍦ㄥ鎴風錛屽簲璇ユ槸鏈嶅姟绔備簬鏄垜鎯寵搗浠ュ墠涓浜涜В鍐砵ava涓枃涔辯爜鐨勯棶棰樸傜敤緇忓吀鐨勮漿鎹㈡柟娉曪細
//榪欐槸涓涓皢瑗挎瀛楃杞崲涓篻b2312瀛楃鐨勮漿鎹㈡柟娉?/SPAN>
public static final String getGBString(String src) 
    
try {
        
return new String(src.getBytes("ISO-8859-1"), "gb2312");
    }
 catch (java.io.UnsupportedEncodingException e) {
        
return null;
    }

}

鍦╳ebservice鐨刯ava綾婚噷闈㈢殑鎵鏈変腑鏂囪繑鍥炰互鍓嶉兘鐢ㄨ繖涓嚱鏁拌漿鎹竴涓嬨?BR>OK錛岄棶棰樿В鍐充簡銆?BR>浣嗘槸騫舵病鏈夊畬鍏ㄨВ鍐籌紝鍥犱負浣犲湪鎵鏈夎繑鍥炰腑鏂囩殑鍑芥暟閲岄兘瑕佹湁榪欎釜鏂規硶銆?BR>鎴戜笉鐭ラ亾Webservice鐨勫紩鎿庢湁娌℃湁綾繪槸Servlet鐨凢ilter鐨勪笢瑗褲備互鍓嶅湪瑙e喅緗戦〉涓婁腑鏂囦貢鐮佺殑鏃跺欏彧瑕佸啓涓涓狥ilter綾誨湪杞崲灝辮浜嗐?img src ="http://www.tkk7.com/mstar/aggbug/6341.html" width = "1" height = "1" />

榛戠伒 2005-06-18 22:34 鍙戣〃璇勮
]]>
Using Flex Builder to Create Web Service鈥揃ased Flex Applicationshttp://www.tkk7.com/mstar/archive/2005/06/12/5990.html榛戠伒榛戠伒Sun, 12 Jun 2005 14:31:00 GMThttp://www.tkk7.com/mstar/archive/2005/06/12/5990.htmlhttp://www.tkk7.com/mstar/comments/5990.htmlhttp://www.tkk7.com/mstar/archive/2005/06/12/5990.html#Feedback0http://www.tkk7.com/mstar/comments/commentRss/5990.htmlhttp://www.tkk7.com/mstar/services/trackbacks/5990.html 

Adding Web Services

Flex Builder makes it easy to add named and unnamed web services to an application by exposing the Flex whitelist.

  1. Open the Data panel by selecting Window > Data (Ctrl + Shift + F7).
  2. To add a service, click the Plus (+) button in the Data panel and choose Web Service.
  3. In the pop-up menu, see all of the named and unnamed web services that have been configured in the Flex whitelist (Figure 1).

    The Data panel.

    Figure 1. The Data panel.

    The named service, SampleEmployeeWS, is one of the services displayed in the list. Named web services allow you to reference web services with simple names instead of using web service WSDL URLs. Entries in the flex-config.xml file map named web services to the web service details, such as the WSDL URL and the type of authentication. This means that web service references in your applications aren鈥檛 hard coded. You can also set up named services for HTTP services and Remote Objects.

  4. Select the named service SampleEmployeeWS from the Add WebService pop-up menu (Figure 2).
The Add WebService dialog box.

Figure 2. The Add WebService dialog box.

Note: In the pop-up menu, you might see entries that contain { } or * syntax. These indicate global filters. Consider these indicators as acceptable URL formats. For example http://{localserver}/* indicates any web service running on the local server, and is legal. For more information on whitelists, see Configuring the whitelist for Flex applications (TechNote 19251).

Once you have added the service to the application, the web service operations, operation parameters, and operation result objects display in the Data panel (Figure 3).

The Data panel with a web service.

Figure 3. The Data panel with a web service.

In the next sections you learn how to:

  • Create a binding to the web service operation parameters
  • Create a binding from the web service operation result to a component
  • Create an event that invokes the web service operation

Binding a Component to a Web Service Request

Use the following steps to bind the dept ComboBox to the getList operation鈥檚 parameter deptId.

  1. Select the pre-populated ComboBox in Design view.
  2. Open the Tag Inspector by selecting Window > Tag Inspector (F9) and selecting the Bindings tab.
  3. Click the Plus (+) button. This displays the Add Binding - Step 1 dialog box.

    In the Add Binding dialog box, you must select the binding direction and a property to bind to. The binding direction specifies how data will flow. Data can flow FROM the selected component (an out binding), or TO the selected component (an in binding). When you select a direction radio button, the default property for the direction displays in the selected component properties list. The selected component properties are a list of properties that are bindable for the selected component. The list of component properties changes depending upon the binding direction. When the direction is TO (or in), the write and read/write properties of the selected component display. When the direction is FROM (or out), the read and read/write properties of the selected component display.

    For this binding, data needs to flow from a ComboBox property to the web service operation鈥檚 argument. Select the radio button to the left of 鈥淒ata will flow FROM 鈥榙ept鈥?. The selectedItem is the default property of the ComboBox, so it is selected by default in the list of properties; it also displays in the Binding Source field at the bottom of the dialog box. The selectedItem property of the ComboBox is an object composed of a data and a label. In this case, you must bind to the data field. Type .data at the end of the selectedItem property in the Binding source text field so that it is: selectedItem.data. Click Next.

    The Add Binding 鈥?Step 1 dialog box with FROM selected.

    Figure 4. The Add Binding 鈥?Step 1 dialog box with FROM selected.

  4. The second bindings dialog box appears. This dialog box contains a list of components that are in the MXML application and a list of component properties that can be bound TO or FROM.

    If you select FROM in the initial binding dialog box, the binding is TO the component property you select in the secondary dialog box. Data will flow from the component property you selected in the initial dialog to the component property you select in the second bindings dialog box.

    Conversely, if you select TO in the initial binding dialog box, then the binding is FROM the component property you select in the secondary dialog box. Data will flow to the component property you selected in the initial dialog box from the component property you select in the second binding's dialog box.

    When you select TO (or in) in the initial binding dialog box, the secondary dialog box鈥檚 component property list displays read and read/write properties. When the direction is FROM or out in the initial binding dialog box, the secondary dialog box鈥檚 component property list displays write and read/write properties.

    For this binding, data needs to flow to the web service operation鈥檚 deptId argument. Select the web service service1 in the 鈥淒ata will flow TO 鈥?tree on the left.

  5. Expand the getList operation and its request object in the 鈥淪elected component property鈥?tree and select the deptId argument. The Binding destination displays service1.getList.request.deptId.

    The Add Binding 鈥?Step 2 dialog displaying TO.

    Figure 5. The Add Binding 鈥?Step 2 dialog box displaying TO.

  6. Click Finish. This creates the binding between the ComboBox and the web service operation argument. Look in Code view. See the generated code:

     <mx:WebService serviceName="SampleEmployeeWS" id="service1">
          <mx:operation name="getList">
            <mx:request>
              <deptId>{dept.selectedItem.data}</deptId>
            </mx:request>
          </mx:operation>
    </mx:WebService>
    

    In Code or Design view, when you select a component with a binding, the component icon, name (or type), and bindings display in the Bindings panel. Selecting the binding in the Bindings panel causes binding direction to display in the Direction field and the component property that the binding is TO or FROM to display the Bound to field. Double-click the binding to edit the full binding. Clicking the Bound to field makes the second binding dialog box appear so that you can edit it.

    When you select the ComboBox in Code or Design view, the selectedItem.data binding displays in the Bindings panel. Selecting the binding displays the direction as out and the Bound to field displays service1.getList.request.deptId. When you select the web service, service1, in the Data panel, getList.request.deptId displays in the Bindings panel. Selecting the binding displays the direction as in and the Bound to field displays dept.selectedItem.data.

    The Bindings panel when you select the ComboBox

    Figure 6. The Bindings panel when you select the ComboBox binding

    The Bindings panel when you select the web service

    Figure 7. The Bindings panel when you select the web service binding

Binding a Component To a Web Service Result

To display the result of your web service operation call, you must create a binding from the web service result to a component property. This is a similar process to the previous binding, but the direction is opposite. The data needs to flow to the component property from the web service operation result instead of from the component property to the web service operation request.

  1. Select the DataGrid component in Design view and click the Plus (+) button in the Bindings panel. This displays the Add Binding - Step 1 dialog box.
  2. The web service result data needs to flow to the DataGrid. Select the "Data will flow TO <mx:DataGrid>" radio button if it hasn't been selected. The default property, dataProvider, is selected in the Component property list.
  3. Notice that the binding syntax displays in the Binding Destination field at the bottom of the dialog box as dataProvider.
  4. Click Next to go to the second binding dialog box.

    The Add Binding 鈥?Step 1 dialog with TO selected

    Figure 8. The Add Binding 鈥?Step 1 dialog with TO selected.

  5. In the second bindings dialog box, select the web service service1 in the 鈥淒ata will flow FROM鈥︹?tree.
  6. Expand the getList operation in the selected component property tree.
  7. Since the DataGrid dataProvider property expects an array, select the result:(Array) node under the getList operation. The Bindings source at the bottom of the dialog box displays service1.getList.result.

    The Add Binding 鈥?Step 2 dialog displaying FROM.

    Figure 9. The Add Binding 鈥?Step 2 dialog displaying FROM.

  8. Click Finish. The Binding icon now appears in Design view
  9. Go to Code view. Notice the added binding in the DataGrid鈥檚 dataProvider property:

    <mx:DataGrid widthFlex="1" dataProvider="{service1.getList.result}">
    
 

Using the Network Monitor To See SOAP Messages and ActionScript Objects

Now that you have set up the bindings and the trigger, it is time to test the application. The Network Monitor helps you debug Flex applications that use data services such as web services, Remote Objects, or HTTP. With the Network Monitor, you can examine the SOAP, AMF, Remote Object, XML, and HTTP traffic as it flows between the Flex application and the data service or services.

The Network Monitor also supports simple trace statements for basic application debugging. Network Monitor traces, such as the one below, display in the Network Monitor at runtime.

NetworkDebugger.NetworkMonitor.trace('trace text goes here');
  
  1. Select Window > Network Monitor (Ctrl + Alt + N) to open the Network Monitor.
  2. Select the Enable Flex Network Monitor checkbox to activate the Network Monitor.

    The Network Monitor in the enabled state.

    Figure 12. The Network Monitor in the enabled state.

  3. Choose File > Run (F6) or click the Run button on the toolbar to preview the application. As the application loads, see the entries appear in the Network Monitor.
  4. In testing this sample application, you aren鈥檛 interested in the HTTP traffic, so select the filter icon and deselect HTTP.

    Note: You do not lose the data when you deselect a filter, you only hide it. If you need the data, simply select the filter.

    The Network Monitor after selecting Run, with filtering button selected.

    Figure 13. The Network Monitor after selecting Run, with filtering button selected

    Because you have filtered out the HTTP traffic, you will see the following web service events:

    • First, the initialization of the web service where the web service WSDL is requested
    • Second, the WSDL that is received in response to the WSDL request
  5. Select Product Management in the ComboBox and click the Get Employee List Button to trigger the web service operation. Notice that a few SOAP and web service events appear.

    Selecting the first SOAP event displays the SOAP envelope sent to the web service in the details pane.

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body xmlns:ns1="http://localhost:8400/samples/services/EmployeeWS">
          <ns1:getList SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <deptId xsi:type="xsd:string">PM</deptId>
          </ns1:getList>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    Selecting the first web service RPC event displays the SOAP envelope as represented in ActionScript.

    Method: getList

    Parameter 1:
    name : deptId
    type : string
    value : PM

    Selecting the second SOAP event displays the SOAP envelope received from the web service in response to the web service call.

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Body>
          <ns1:getListResponse xmlns:ns1="http://localhost:8300/samples/services/EmployeeWS" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <getListResult xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:anyType[2]">
                <item href="#id0"/>
                <item href="#id1"/>
             </getListResult>
          </ns1:getListResponse>
          <multiRef xmlns:ns2="http://www.macromedia.com/samples" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" id="id0" SOAP-ENC:root="0" xsi:type="ns2:Employee">
             <name xsi:type="xsd:string">Ronnie Hodgman</name>
             <phone xsi:type="xsd:string">555-219-2030</phone>
             <email xsi:type="xsd:string">rhodgman@fictitious.com</email>
             <salary xsi:type="xsd:double">0.0</salary>
          </multiRef>
          <multiRef xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://www.macromedia.com/samples" id="id1" SOAP-ENC:root="0" xsi:type="ns3:Employee">
             <name xsi:type="xsd:string">Joanne Wall</name>
             <phone xsi:type="xsd:string">555-219-2012</phone>
             <email xsi:type="xsd:string">jwall@fictitious.com</email>
             <salary xsi:type="xsd:double">0.0</salary>
          </multiRef>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    Selecting the second web service RPC event displays the response to the web service call as represented in ActionScript.

    [array] : 
    length[Number] : 2
    [0][object] : 
    SOAP-ENC:root[String] : 0
    email[String] : rhodgman@fictitious.com
    id[String] : id0
    name[String] : Ronnie Hodgman
    phone[String] : 555-219-2030
    salary[Number] : 0
    xmlns:SOAP-ENC[String] : http://schemas.xmlsoap.org/soap/encoding/
    xmlns:ns2[String] : http://www.macromedia.com/samples
    xsi:type[String] : ns2:Employee
    
    [1][object] : 
    SOAP-ENC:root[String] : 0
    email[String] : jwall@fictitious.com
    id[String] : id1
    name[String] : Joanne Wall
    phone[String] : 555-219-2012
    salary[Number] : 0
    xmlns:SOAP-ENC[String] : http://schemas.xmlsoap.org/soap/encoding/
    xmlns:ns3[String] : http://www.macromedia.com/samples
    xsi:type[String] : ns3:Employee
    
    The Network Monitor after with the web service ActionScript object selected.

    Figure 14. The Network Monitor after with the web service ActionScript object selected.

Developing and debugging applications can be time consuming. As you have seen, with Flex Builder鈥檚 visual data binding you can quickly wire together simple Flex applications. The Network Monitor eases the process of debugging data services in Flex applications, making you more productive.



榛戠伒 2005-06-12 22:31 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 黄+色+性+人免费| 亚洲日本一区二区三区在线不卡| 久久乐国产综合亚洲精品| 国产成人高清精品免费鸭子 | 亚洲欧洲日韩在线电影| 四虎www成人影院免费观看| 三年片免费高清版 | 在线观看免费黄色网址| 成人亚洲网站www在线观看| MM1313亚洲精品无码久久| 亚洲日韩欧洲乱码AV夜夜摸| 1024免费福利永久观看网站| 免费国产污网站在线观看不要卡| 香蕉蕉亚亚洲aav综合| 久久99精品免费视频| 亚洲精品国产第一综合99久久| 日韩精品无码人妻免费视频| 在线免费播放一级毛片| 亚洲精品又粗又大又爽A片| 免费观看国产小粉嫩喷水| 日韩精品内射视频免费观看| 免费在线人人电影网| 精品日韩99亚洲的在线发布| 18禁成年无码免费网站无遮挡| 亚洲人成网站色在线观看| 亚洲色偷偷综合亚洲AVYP| 男女交性永久免费视频播放| 最近中文字幕mv免费高清在线| 日本免费精品一区二区三区 | 亚洲精品无码专区| 久久久久亚洲AV无码专区首JN| 亚洲av区一区二区三| 91香蕉视频免费| 久久免费福利视频| 久久不见久久见免费影院www日本 久久WWW免费人成—看片 | 亚洲变态另类一区二区三区| 亚洲福利一区二区精品秒拍| 亚洲精品乱码久久久久久按摩| 国产一卡二卡≡卡四卡免费乱码| 99热在线精品免费全部my| 日韩人妻无码精品久久免费一 |