锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色资源二区在线视频,这里视频有精品,欧美精品久久久久久久久老牛影院http://www.aygfsteel.com/hyljava/category/53241.htmlzh-cnSat, 23 Nov 2013 23:13:20 GMTSat, 23 Nov 2013 23:13:20 GMT60鍥涙搗鍏村攼璇劇▼杈呭騫沖彴http://www.aygfsteel.com/hyljava/archive/2013/11/23/406728.html浣曚簯闅?/dc:creator>浣曚簯闅?/author>Sat, 23 Nov 2013 12:52:00 GMThttp://www.aygfsteel.com/hyljava/archive/2013/11/23/406728.htmlhttp://www.aygfsteel.com/hyljava/comments/406728.htmlhttp://www.aygfsteel.com/hyljava/archive/2013/11/23/406728.html#Feedback0http://www.aygfsteel.com/hyljava/comments/commentRss/406728.htmlhttp://www.aygfsteel.com/hyljava/services/trackbacks/406728.html鍥涙搗鍏村攼璇劇▼杈呭騫沖彴
http://fd.itedu-g.cn/login.php

]]>
Remote Object Servicehttp://www.aygfsteel.com/hyljava/archive/2013/01/20/394479.html浣曚簯闅?/dc:creator>浣曚簯闅?/author>Sun, 20 Jan 2013 14:46:00 GMThttp://www.aygfsteel.com/hyljava/archive/2013/01/20/394479.htmlhttp://www.aygfsteel.com/hyljava/comments/394479.htmlhttp://www.aygfsteel.com/hyljava/archive/2013/01/20/394479.html#Feedback0http://www.aygfsteel.com/hyljava/comments/commentRss/394479.htmlhttp://www.aygfsteel.com/hyljava/services/trackbacks/394479.htmlRemote Object Service
瀵逛簬涓繪祦鐨凢lex鏁版嵁鏈嶅姟鍣紝鐩墠閮芥敮鎸丄MF3/RemoteObject錛屼粖澶╂垜浠氨鏉ヨ皥涓璋圔lazeDS鐨勮繙紼嬫湇鍔°?/p>

1. 緙栧啓榪滅▼鏈嶅姟綾?/p>

緙栧啓BlazeDS鐨凧ava榪滅▼鏈嶅姟綾繪湁涓変釜瑕佹眰錛?/p>

1) 鎵鏈夎璋冪敤鐨勬柟娉曞繀欏繪槸public錛?/p>

2) 鎵鏈夌殑緙栬瘧綾誨繀欏昏兘澶熼氳繃BlazeDS鐨刢lasspath璁塊棶寰楀埌錛?/p>

3) 綾誨繀欏繪槸stateful/stateless鐨勩?/p>

澶у鍙互鍙傝冨伐紼嬫枃浠朵腑鐨凷impleService.java銆?span id="more-128">

2. 閰嶇疆remoting-config.xml

Java鏈嶅姟綾誨啓濂藉悗錛岃繕闇瑕侀厤緗紝BlazeDS鐨凴emote Service涔熸槸鍦ㄦ湇鍔″櫒绔搴斾簡(jiǎn)涓涓厤緗枃浠訛細(xì)remoting-config.xml錛岄厤緗ソRemote Service 鍚庯紝Flex鍦ㄨ繍琛屾椂鎵嶈兘鎵懼埌鐩稿簲鐨勬湇鍔$被騫惰皟鐢ㄥ叾鏂規(guī)硶銆備笅闈㈠氨鏄湰宸ョ▼鐨凴emote Service閰嶇疆鏂囦歡銆?/p>

閰嶇疆鏂囦歡

絎?~3琛屾寚瀹氭湇鍔$殑ID鍜屽搴旂殑綾伙紝絎?~7琛岃緗傞厤鍣?adapters)鐨処D鍜屽搴旂殑綾匯傜9~11琛屾寚瀹氶粯璁ょ殑閫氶亾(channels)鍙?qiáng)鍏跺弬鐓уQ岃閫氶亾鏄湪 services-config.xml涓畾涔夌殑銆傞傞厤鍣ㄥ拰閫氶亾鍙互璁劇疆澶氫釜錛岄噰鐢ㄧ涓涓紭鍏堢殑鍘熷垯銆傚墠闈㈣繖鍑犻」璁劇疆閫傜敤浜巔roxy-config.xml銆乺emoting-config.xml鍜屾垜浠悗闈㈣璁茬殑 messaging-config.xml銆?/p>

絎?3~18琛岃緗殑鏈嶅姟緇堢(destination)錛岃灞炴у繀欏誨拰RemoteObject緇勪歡鐨勬湇鍔$粓绔睘鎬т竴鑷淬傛寜鐓ф湇鍔$殑縐嶇被錛屾湇鍔$粓绔張鍙互鍒嗕負(fù)浠g悊鏈嶅姟緇堢銆佽繙紼嬫湇鍔$粓绔拰娑堟伅鏈嶅姟緇堢銆備笂涓嬈¤榪扮殑浠g悊鏈嶅姟緇堢錛岄渶瑕佹寚瀹氳緇堢鐨剈rl錛岃岃繖嬈℃垜浠榪扮殑榪滅▼鏈嶅姟緇堢錛岄渶瑕佹寚瀹氳鐩爣鐨剆ource鍜宻cope銆俿ource瀵瑰簲 RemoteObject瑕佽皟鐢ㄧ殑榪滅▼鏈嶅姟鐨勫叏闄愬畾綾誨悕錛?em>涓嶅儚FluorineFX錛屽畠涓嶈兘鍦≧emoteObject緇勪歡涓寚瀹?/em>銆俿cope琛ㄧず褰撳墠榪滅▼鏈嶅姟鐨勪綔鐢ㄨ寖鍥達(dá)紝鍗寵繙紼嬫湇鍔$被鏄痵tateful榪樻槸stateless錛屾湁application銆乻ession鍜宺equest涓変釜閫夐」銆?/p>

娉ㄦ剰錛氭垜浠彁鍊″湪閰嶇疆鏂囦歡涓緗紝榪欐牱鏇村畨鍏ㄤ篃鏂逛究鍚庢湡緇存姢銆?/em>

3. 浣跨敤RemoteObjec緇勪歡

瀵逛簬RemoteObjec緇勪歡錛岃鍙傜湅
涓嬮潰鐨?strong>Flex RemoteObject綾誨弬鑰?/strong>鐩稿叧鍐呭銆備竴鍙ヨ瘽錛孎lex鐨凴emoteObject涓庡悗鍙拌璦鏄棤鍏崇殑銆傚湪宸ョ▼鏂囦歡涓殑BasicRemoteObject.mxml錛岃皟鐢ㄤ簡(jiǎn)SimpleService綾葷殑涓変釜鏂規(guī)硶錛屽綋閫氳繃BlazeDS浠嶫2EE鏈嶅姟鍣ㄨ繑鍥濺emoteObjec鏃訛紝Java鏁版嵁琚簭鍒楀寲鎴怉ctionScript鏁版嵁銆傚叾涓璊ava瀛楃涓插搴擜ctionScript瀛楃涓詫紝Java鐨勬暟緇勫垪琛ㄥ搴擜ctionScript ArrayCollection銆?/p>
Flex RemoteObject綾誨弬鑰?/strong>


<mx:RemoteObject>鏍囪鍏佽浣跨敤AMF3璁塊棶榪滅▼鏈嶅姟綾葷殑鏂規(guī)硶錛岃鐭ラ亾鍦‵lex涓庢牱浣跨敤Flash Remoting璁塊棶鏁版嵁錛屽簲璇ュ厛浜?jiǎn)瑙d竴涓婻emoteObject綾匯?/p>

瑕佺煡閬撳湪Flex涓庢牱浣跨敤Flash Remoting璁塊棶鏁版嵁錛屽簲璇ュ厛浜?jiǎn)瑙d竴涓婻emoteObject綾匯?/p>

鍖?mx.rpc.remoting 綾?public dynamic class RemoteObject 
緇ф壙 RemoteObject → AbstractService → Proxy → Object 
瀛愮被 RemoteObject

涓銆?lt;mx:RemoteObject>鏍囪

瀹冨厑璁鎬嬌鐢ˋMF3璁塊棶榪滅▼鏈嶅姟綾葷殑鏂規(guī)硶銆?/p>

1. <mx:RemoteObject>鍏佽鐨勬爣璁板睘鎬ф湁錛?/p>

1
2
3
4
5
6
7
8
9
10
11
12
13
<mx:RemoteObject
  Properties
  concurrency="multiple|single|last"
  destination="No default."
  id="No default."
  endpoint="No default."
  showBusyCursor="false|true"
  source="No default." (currently, Macromedia ColdFusion only)
  makeObjectsBindable="false|true"
  浜嬩歡
  fault="No default."
  result="No default."  
 />

2. <mx:RemoteObject>鏍囪鍙互鍖呭惈澶氫釜 <mx:method> 鏍囪錛?lt;mx:method>鍏佽鐨勬爣璁板睘鎬ф湁錛?/p>

1
2
3
4
5
6
7
8
9
<mx:method
  Properties
  concurrency="multiple|single|last"
  name="No default, required."
  makeObjectsBindable="false|true"       
 浜嬩歡
  fault="No default."
  result="No default."
 />

3. <mx:RemoteObject>鏍囪鍙互涔熷彧鑳藉寘鍚竴涓?lt;mx:arguments> 瀛愭爣璁幫紝璇ュ瓙鏍囪鏄竴涓簭鍒楁暟緇勫璞°?/p>

浜屻佸叕鏈夊睘鎬?/p>

1. concurrency : String

琛ㄧず瀵瑰悓涓鏈嶅姟鎬庢牱榪涜澶氭璋冪敤銆傜被浼間簬XMLConnector/WebServiceConnector/RemotingConnector鐨刴ultipleSimultaneousAllowed灞炴с傚畠鐨勯粯璁ゅ間負(fù)multiple錛屽厑璁鎬笅鍒楀?

  • Multiple錛氬悓涓鏃墮棿鍙互鎵ц澶氫釜璇鋒眰銆傚凡鏈夌殑璇鋒眰涓嶄細(xì)琚彇娑堬紱
  • Single錛氬悓涓鏃墮棿璋冪敤鍙兘鎵ц涓涓姹傦紝澶氫釜璇鋒眰浼?xì)鎶ラ敊锛?/li>
  • Last錛氭渶鍚庝竴嬈¤姹備細(xì)瑕嗙洊宸叉湁鐨勮姹傘?/li>

2. endpoint: String

鍏佽寮鍙戜漢鍛樺揩閫熶負(fù)RemoteObject destination(鐩爣)鎸囧畾endpoint(绔偣)銆傝岃destination鏃㈡病鏈夊湪緙栬瘧鏃訛紝涔熸病鏈夊湪鐢ㄤ唬鐮佹柊寤篊hannelSet(閫氶亾闆?鏃跺弬鐓ervices-config.xml銆傚鏋滆瀹氫簡(jiǎn)璇ュ睘鎬э紝瀹冧細(xì)瑕嗙洊宸叉湁鐨凜hannelSet銆?/p>

濡傛灉endpoint 鐨剈rl 浠?#8220;https”寮鍏籌紝灝嗕嬌鐢?SecureAMFChannel, 鍚﹀垯浣跨敤鏅氱殑AMFChannel銆倇server.name}鍜寋server.port}鏍囪,鍙互鐢ㄥ湪endpoint鐨剈rl涓紝琛ㄦ槑Channel搴旇浣跨敤鐢ㄦ潵鍔犺澆SWF鏂囦歡鐨勬湇鍔″悕縐板拰绔彛銆?/p>

3. showBusyCursor:Boolean

琛ㄧず鏈嶅姟姝e湪鎵ц鏃舵槸鍚︽樉紺轟竴涓〃紺哄繖紕岀殑榧犳爣鎸囬拡銆?/p>

涓夈佸叕鏈夋柟娉?/p>

1. RemoteObject () 鏋勯犳柟娉?/p>

鍒涘緩涓涓柊鐨凴emoteObject瀵硅薄銆?/p>

鍙傛暟

destination:String (榛樿涓?null) —RemoteObject 鐨刣estination灞炴у繀欏誨尮閰?services-config.xml 涓殑destination鐨処D灞炴у箋?/p>

2. initialized ()

public function initialized(document:Object, id:String):void

鍙璁懼畾RemoteObject鏍囪灝變細(xì)閫氳繃MXML緙栬瘧鍣ㄨ嚜鍔ㄨ皟鐢ㄨ鏂規(guī)硶銆傚鏋滀嬌鐢ˋctionScrip鏂板緩RemoteObject瀹炰緥錛屽垯鍙互鑷璋冪敤璇ユ柟娉曪紝榪欏楠岃瘉鍏跺弬鏁板緢鏈夌敤銆?/p>

鍙傛暟

  • document:Object —RemoteObject 鎵鍦ㄧ殑MXML鏂囨。
  • id:String —RemoteObjec鍦ㄤ笂榪版枃妗d腑鐨処D


]]>
鍦‵lex涓嬌鐢ˋctionScript鐨勪笁縐嶆柟娉?/title><link>http://www.aygfsteel.com/hyljava/archive/2013/01/20/394476.html</link><dc:creator>浣曚簯闅?/dc:creator><author>浣曚簯闅?/author><pubDate>Sun, 20 Jan 2013 14:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/hyljava/archive/2013/01/20/394476.html</guid><wfw:comment>http://www.aygfsteel.com/hyljava/comments/394476.html</wfw:comment><comments>http://www.aygfsteel.com/hyljava/archive/2013/01/20/394476.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hyljava/comments/commentRss/394476.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hyljava/services/trackbacks/394476.html</trackback:ping><description><![CDATA[<div id="wmqeeuq" class="content"> <p>鍦‵lex涓嬌鐢ˋctionScript錛屽叾瀹炲拰鍦ㄧ綉欏典腑浣跨敤Javascript絳夎剼鏈枃浠剁被浼鹼紝涓昏鏈変笁縐嶆柟寮忋?span id="more-18"></span></p> <p>Flex鐨勬牳蹇?jī)鏄疢XML鍜孉ctionScript銆侻XML鏄敤浜庝負(fù)Flex搴旂敤紼嬪簭榪涜鐢ㄦ埛鐣岄潰緇勪歡甯冨眬錛屽畠灞炰簬琛ㄧず灞傦紝鏈緇堣緙栬緫鎴怉ctionScript 騫剁敓鎴怉ctionScript 綾繪枃浠跺湪Flash Player涓婅繍琛屻傚鏋滀綘鏄釜Java寮鍙戣呭氨寰堝ソ鐞嗚В榪欎竴鐐癸紝MXML 灝卞ソ姣旀槸JSP/Struts/JSF錛屽畠浠渶緇堥兘浼?xì)缂栬緫鎴怞ava綾繪枃浠跺茍鍦ㄥ叿澶嘕ava铏氭嫙鏈虹幆澧冪殑嫻忚鍣ㄤ笂榪愯銆傛墍浠ヨ錛孎lex 鏈鏍稿績(jī)鐨勮繕鏄疉ctionScript 銆傚湪Flex涓紝ActionScript鏄?綾誨簱鐨勬柟寮忓嚭鐜扮殑錛岃綾誨簱鍖呭惈緇勪歡 (瀹瑰櫒鍜屾帶浠?銆佺鐞嗗櫒綾匯佹暟鎹湇鍔$被鍜屾墍鏈夊叾浠栧姛鑳界殑綾匯傛湰鏂囧皢璋堜竴璋堝湪Flex涓嬌鐢ˋctionScript鐨勬柟娉曘?/p> <p>鍏跺疄鍜屽湪緗戦〉涓嬌鐢↗avascript絳夎剼鏈枃浠剁被浼鹼紝涓昏鏈変笁縐嶆柟寮忋?/p> <p>1. 鍐呰仈鏂瑰紡<br />榪欑鏂瑰紡鐩存帴灝咥S鏂規(guī)硶浣滀負(fù)浜嬩歡鐨勫睘鎬у鹼紝褰撶劧榪欑鏂規(guī)硶涓鑸彧鏈変竴琛岋紝鐩稿綆鍗曘傚鏋滆緇欐柟娉曚紶閫掑鏁幫紝榪欑鏂規(guī)硶灝變笉鍙彇浜?jiǎn)銆?/p> <div> <div class="wmqeeuq" id="highlighter_900553" class="syntaxhighlighter notranslate xml ie"> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter"> <div id="wmqeeuq" class="line number1 index0 alt2">1</div> <div id="wmqeeuq" class="line number2 index1 alt1">2</div> <div id="wmqeeuq" class="line number3 index2 alt2">3</div> <div id="wmqeeuq" class="line number4 index3 alt1">4</div> <div id="wmqeeuq" class="line number5 index4 alt2">5</div> <div id="wmqeeuq" class="line number6 index5 alt1">6</div> <div id="wmqeeuq" class="line number7 index6 alt2">7</div> <div id="wmqeeuq" class="line number8 index7 alt1">8</div> <div id="wmqeeuq" class="line number9 index8 alt2">9</div> <div id="wmqeeuq" class="line number10 index9 alt1">10</div> <div id="wmqeeuq" class="line number11 index10 alt2">11</div> <div id="wmqeeuq" class="line number12 index11 alt1">12</div> <div id="wmqeeuq" class="line number13 index12 alt2">13</div></td> <td class="code"> <div id="wmqeeuq" class="container"> <div id="wmqeeuq" class="line number1 index0 alt2"><code class="xml comments"><!--main.mxml --></code></div> <div id="wmqeeuq" class="line number2 index1 alt1"><code class="xml plain"><?</code><code class="xml keyword">xml</code> <code class="xml color1">version</code><code class="xml plain">=</code><code class="xml string">"1.0"</code> <code class="xml color1">encoding</code><code class="xml plain">=</code><code class="xml string">"utf-8"</code><code class="xml plain">?>  </code></div> <div id="wmqeeuq" class="line number3 index2 alt2"><code class="xml plain"><</code><code class="xml keyword">mx:Application</code> <code class="xml color1">xmlns:mx</code><code class="xml plain">=</code><code class="xml string">"http://www.adobe.com/2006/mxml"</code> <code class="xml color1">layout</code><code class="xml plain">=</code><code class="xml string">"vertical"</code><code class="xml plain">>  </code></div> <div id="wmqeeuq" class="line number4 index3 alt1"><code class="xml spaces">    </code><code class="xml plain"><</code><code class="xml keyword">mx:Button</code> <code class="xml color1">label</code><code class="xml plain">=</code><code class="xml string">"Say Hello"</code> <code class="xml color1">click</code><code class="xml plain">=</code><code class="xml string">"sayHello('Flying')"</code><code class="xml plain">/>  </code></div> <div id="wmqeeuq" class="line number5 index4 alt2"><code class="xml spaces">        </code><code class="xml plain"><</code><code class="xml keyword">mx:Script</code><code class="xml plain">>  </code></div> <div id="wmqeeuq" class="line number6 index5 alt1"><code class="xml spaces">            </code><code class="xml color2"><![CDATA[  </code></div> <div id="wmqeeuq" class="line number7 index6 alt2"><code class="xml spaces">                </code><code class="xml color2">import mx.controls.Alert;  </code></div> <div id="wmqeeuq" class="line number8 index7 alt1"><code class="xml spaces">                </code><code class="xml color2">private function sayHello(param_name:String):void {  </code></div> <div id="wmqeeuq" class="line number9 index8 alt2"><code class="xml spaces">                    </code><code class="xml color2">Alert.show("Hello, "+param_name);  </code></div> <div id="wmqeeuq" class="line number10 index9 alt1"><code class="xml spaces">            </code><code class="xml color2">}    </code></div> <div id="wmqeeuq" class="line number11 index10 alt2"><code class="xml spaces">            </code><code class="xml color2">]]></code></div> <div id="wmqeeuq" class="line number12 index11 alt1"><code class="xml spaces">        </code><code class="xml plain"></</code><code class="xml keyword">mx:Script</code><code class="xml plain">>  </code></div> <div id="wmqeeuq" class="line number13 index12 alt2"><code class="xml plain"></</code><code class="xml keyword">mx:Application</code><code class="xml plain">></code></div></div></td></tr></tbody></table></div></div> <p>2. 綰ц仈鏂瑰紡<br />榪欑鏂瑰紡灝咥S鏂規(guī)硶鏀懼叆<mx:Script></mx:Script>浠g爜鍧椾腑錛岀劧鍚庡皢鏂規(guī)硶浣滀負(fù)浜嬩歡鐨勫睘鎬у鹼紝騫跺彲浠ュ湪璋冪敤鏂規(guī)硶鏃朵紶閫掑弬鏁幫紝浠庤屽仛鍒頒簡(jiǎn)AS鏂規(guī)硶鍦ㄤ竴涓枃浠朵腑鐨勯噸鐢ㄣ?/p> <div> <div class="wmqeeuq" id="highlighter_7587" class="syntaxhighlighter notranslate xml ie"> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter"> <div id="wmqeeuq" class="line number1 index0 alt2">1</div> <div id="wmqeeuq" class="line number2 index1 alt1">2</div> <div id="wmqeeuq" class="line number3 index2 alt2">3</div> <div id="wmqeeuq" class="line number4 index3 alt1">4</div> <div id="wmqeeuq" class="line number5 index4 alt2">5</div> <div id="wmqeeuq" class="line number6 index5 alt1">6</div></td> <td class="code"> <div id="wmqeeuq" class="container"> <div id="wmqeeuq" class="line number1 index0 alt2"><code class="xml comments"><!--main.mxml --></code></div> <div id="wmqeeuq" class="line number2 index1 alt1"><code class="xml plain"><?</code><code class="xml keyword">xml</code> <code class="xml color1">version</code><code class="xml plain">=</code><code class="xml string">"1.0"</code> <code class="xml color1">encoding</code><code class="xml plain">=</code><code class="xml string">"utf-8"</code><code class="xml plain">?>  </code></div> <div id="wmqeeuq" class="line number3 index2 alt2"><code class="xml plain"><</code><code class="xml keyword">mx:Application</code> <code class="xml color1">xmlns:mx</code><code class="xml plain">=</code><code class="xml string">"http://www.adobe.com/2006/mxml"</code> <code class="xml color1">layout</code><code class="xml plain">=</code><code class="xml string">"vertical"</code><code class="xml plain">>  </code></div> <div id="wmqeeuq" class="line number4 index3 alt1"><code class="xml plain"><</code><code class="xml keyword">mx:Script</code> <code class="xml color1">source</code><code class="xml plain">=</code><code class="xml string">"myFunction.as"</code><code class="xml plain">/>   </code></div> <div id="wmqeeuq" class="line number5 index4 alt2"><code class="xml spaces">    </code><code class="xml plain"><</code><code class="xml keyword">mx:Button</code> <code class="xml color1">label</code><code class="xml plain">=</code><code class="xml string">"Say Hello"</code> <code class="xml color1">click</code><code class="xml plain">=</code><code class="xml string">"sayHello('Flying');"</code><code class="xml plain">/>  </code></div> <div id="wmqeeuq" class="line number6 index5 alt1"><code class="xml plain"></</code><code class="xml keyword">mx:Application</code><code class="xml plain">></code></div></div></td></tr></tbody></table></div></div> <p>3. 澶栬仈鏂瑰紡</p> <div> <div class="wmqeeuq" id="highlighter_994187" class="syntaxhighlighter notranslate as3 ie"> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter"> <div id="wmqeeuq" class="line number1 index0 alt2">1</div> <div id="wmqeeuq" class="line number2 index1 alt1">2</div> <div id="wmqeeuq" class="line number3 index2 alt2">3</div> <div id="wmqeeuq" class="line number4 index3 alt1">4</div> <div id="wmqeeuq" class="line number5 index4 alt2">5</div></td> <td class="code"> <div id="wmqeeuq" class="container"> <div id="wmqeeuq" class="line number1 index0 alt2"><code class="as3 comments">//myFunction.asimport </code></div> <div id="wmqeeuq" class="line number2 index1 alt1"><code class="as3 plain">mx.controls.Alert; </code></div> <div id="wmqeeuq" class="line number3 index2 alt2"><code class="as3 keyword">private</code> <code class="as3 color3">function</code> <code class="as3 plain">sayHello(param_name:</code><code class="as3 keyword">String</code><code class="as3 plain">):</code><code class="as3 keyword">void</code> <code class="as3 plain">{ </code></div> <div id="wmqeeuq" class="line number4 index3 alt1"><code class="as3 spaces">    </code><code class="as3 plain">mx.controls.Alert.show(</code><code class="as3 string">"Hello, "</code><code class="as3 plain">+param_name); </code></div> <div id="wmqeeuq" class="line number5 index4 alt2"><code class="as3 plain">}</code></div></div></td></tr></tbody></table></div></div> <p>涓婅堪鏂瑰紡涓篈S鏂規(guī)硶鍗曠嫭鏂板緩涓涓猘s鏂囦歡錛岀劧鍚庤緗鏂規(guī)硶涓鴻璋冪敤鏂囦歡鐨凷cript鍏冪礌鐨剆ource灞炴у鹼紝騫跺彲浠ュ湪璋冪敤鏂規(guī)硶鏃朵紶閫掑弬鏁幫紝姝ゆ枃浠跺彲浠ュ湪澶氫釜鏂囦歡璋冪敤錛屼粠鑰屽疄鐜頒簡(jiǎn)AS鏂規(guī)硶鍦ㄥ涓枃浠朵腑鐨勯噸鐢ㄣ?/p> <div id="wmqeeuq" class="fixed"></div></div><img src ="http://www.aygfsteel.com/hyljava/aggbug/394476.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hyljava/" target="_blank">浣曚簯闅?/a> 2013-01-20 22:33 <a href="http://www.aygfsteel.com/hyljava/archive/2013/01/20/394476.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Flex璺寵漿http://www.aygfsteel.com/hyljava/archive/2013/01/18/394432.html浣曚簯闅?/dc:creator>浣曚簯闅?/author>Fri, 18 Jan 2013 14:41:00 GMThttp://www.aygfsteel.com/hyljava/archive/2013/01/18/394432.htmlhttp://www.aygfsteel.com/hyljava/comments/394432.htmlhttp://www.aygfsteel.com/hyljava/archive/2013/01/18/394432.html#Feedback0http://www.aygfsteel.com/hyljava/comments/commentRss/394432.htmlhttp://www.aygfsteel.com/hyljava/services/trackbacks/394432.htmlFlex璺寵漿鍒癑SP鎴栬呭叾浠栭潪Flex欏甸潰

 

Html浠g爜
var url:String="http://"+URLUtil.getServerNameWithPort(Application.application.url)+"/DZDJ/index.jsp?id=" + 1;  
                 ExternalInterface.call('window.open',url,'_top');  

_top鏄彲鍙樼殑錛宊top琛ㄧず鍦ㄥ綋鍓嶉〉闈㈡墦寮錛屽叧闂繙欏甸潰銆?/p>

 

 

 

瀵煎叆綾伙細(xì)

        import flash.net.URLRequest;
        import flash.net.navigateToURL;

鍏抽棴褰撳墠嫻忚鍣細(xì)

                        var url:URLRequest = new URLRequest("javascript:window.close()");
                        navigateToURL(url,"_top");

                        錛堟敞鎰忥細(xì)瑕佸湪鏈嶅姟鍣ㄤ笂嫻嬭瘯錛屽惁鍒欎細(xì)鎶ュ畨鍏ㄦ矙綆卞啿紿侊級(jí)錛?/p>

鍦ㄦ祻瑙堝櫒涓婅煩杞〉闈?/p>

                        navigateToURL(new URLRequest("http://www.baidu.com"),"_top");

鎵撳紑涓涓柊鐨勬祻瑙堝櫒錛?/p>

                       var request:URLRequest = new URLRequest("http://www.baidu.com/);
                       navigateToURL(request);

 

Flex璺寵漿鍒癋lex

FLEX鍜孞SP涓嶄竴鏍鳳紝娌℃湁鎵璋撶殑榪欎釜欏甸潰璺寵漿鍒板彟澶栫殑涓涓〉闈€備竴鑸兘鏄敤ViewStack榪涜欏甸潰鍒囨崲錛屽叾浠栨ā鍧楀氨闇瑕乴oadmoudle榪涜鍑芥暟璁劇疆浜?jiǎn)銆?/p>

<mx:ViewStack x="0" y="0" id="viewstack1" width="619" height="700">
   <mx:Canvas id="View1" width="100%" height="100%">
      <mx:Button label="View2 " click="viewstack1.selectedChild=View2"/>
       </mx:Canvas>


   <mx:Canvas id="View2" width="100%" height="100%" color="#3FCFE9">
   </mx:Canvas>
</mx:ViewStack>



]]>
主站蜘蛛池模板: 石台县| 广汉市| 泸溪县| 信丰县| 闽侯县| 江达县| 东乌珠穆沁旗| 磐安县| 海南省| 红原县| 旬邑县| 壤塘县| 临湘市| 贵州省| 宜宾县| 漳平市| 新泰市| 梁山县| 武川县| 惠水县| 抚州市| 焉耆| 温宿县| 长寿区| 南城县| 卓尼县| 武汉市| 安化县| 丰原市| 荆门市| 龙陵县| 望都县| 渝北区| 富锦市| 许昌县| 昭通市| 乡城县| 谢通门县| 乌兰浩特市| 定日县| 兴义市|