锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲A∨精品一区二区三区下载,亚洲av综合av一区,久久精品国产亚洲AV无码娇色 http://www.tkk7.com/qin/category/35376.htmlArt is longzh-cnTue, 25 Nov 2008 11:48:02 GMTTue, 25 Nov 2008 11:48:02 GMT60flex鍜宩ava鐩哥粨鍚堝噯澶囧伐浣滃拰涓涓疄渚?/title><link>http://www.tkk7.com/qin/archive/2008/11/24/242298.html</link><dc:creator>qin</dc:creator><author>qin</author><pubDate>Mon, 24 Nov 2008 09:11:00 GMT</pubDate><guid>http://www.tkk7.com/qin/archive/2008/11/24/242298.html</guid><wfw:comment>http://www.tkk7.com/qin/comments/242298.html</wfw:comment><comments>http://www.tkk7.com/qin/archive/2008/11/24/242298.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/qin/comments/commentRss/242298.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/qin/services/trackbacks/242298.html</trackback:ping><description><![CDATA[<p>瀛︿簡flex鍜宩ava鏈変竴孌墊椂闂翠簡錛屽彲鏈榪戜竴涓鏈堟病鐪嬭繃錛屼笉榪囨垜鎯沖啓涓綃囧笘瀛愶紝甯屾湜瀵筬lex娌℃湁鍏ラ棬鐨勪漢鏈夋墍甯姪錛屽ソ浜嗭紝搴熻瘽灝戣錛屼笅闈㈡潵鐪嬩竴涓媐lex鍜宩ava鐩哥粨鍚堬紝鏈夊摢浜涘伐浣滆鍋?br /> 1.瀹夎myeclipse錛屾垨eclipse鍜宖lex builder3錛宼omcat<br /> 2.闆嗘垚myeclipse鍜宖lex buider3錛岃涓や釜宸ュ叿閮藉彲浠ュ啓flex欏圭洰鍜宩ava欏圭洰錛?br />    鏂規硶<br />    鍦ㄥ畨瑁呭ソ鐨刦lex builder3璺緞閲岋紝鎵懼埌features,plugins鐩綍錛屾妸涓嬮潰鐨勬枃浠跺叏鑰冨埌eclipse錛堜笉綆℃槸瀹夎myeclipse榪樻槸eclipse錛岄兘鏈塭clipse璺緞錛夎礬寰勪笅features,plugins閲?br />    鍐嶅埌瀹夎濂界殑flex builder3璺緞錛屾壘鍒皊dks鐩綍錛屾妸鏁翠釜鐩綍鑰冨埌eclipse璺緞涓?br />     褰撲綘鎵撳紑eclipse鎴栨槸myeclipse錛屽湪鏂板緩欏圭洰閲岋紝鐪嬪埌鏈塮lex project 灝監K浜嗭紝閭e氨浠h〃閰嶇疆鎴愬姛浜?br /> 3.涓嶈繃瑕佺粨鍚堝紑鍙慺lex鍜宩ava鐩哥粨鍚堢殑欏圭洰錛岃嶄簡涓や釜jar鍖咃紝鍒嗗埆鏄痙s-console.jar,blazeds.jar<br /> 4.flex鍜宩ava鐩哥粨鍚堣繍琛屽拰涓鑸殑java欏圭洰鏄竴鏍風殑錛屾墍闇瑕佺殑鏈嶅姟鍣ㄥ彲浠ユ槸tomcat錛屾垜浠ぇ瀹跺鏈嶅姟鍣ㄩ厤緗兘寰堢啛浜嗗惂···<br /> 5.鍏堟柊寤轟竴涓猨avaweb欏圭洰錛屽悕縐頒負flexDome錛岀劧鍚庢妸ds-console.jar,blazeds.jar娣誨姞鍒伴」鐩甪lexDome涓?br />   浠g爜濡備笅鏄劇ず錛欻elloWorld.java   </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">package</span><span style="color: #000000"> com.spell;<br /> <img id="Codehighlighter1_43_112_Open_Image" onclick="this.style.display='none'; Codehighlighter1_43_112_Open_Text.style.display='none'; Codehighlighter1_43_112_Closed_Image.style.display='inline'; Codehighlighter1_43_112_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_43_112_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_43_112_Closed_Text.style.display='none'; Codehighlighter1_43_112_Open_Image.style.display='inline'; Codehighlighter1_43_112_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> HelloWorld </span><span id="Codehighlighter1_43_112_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_43_112_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_81_110_Open_Image" onclick="this.style.display='none'; Codehighlighter1_81_110_Open_Text.style.display='none'; Codehighlighter1_81_110_Closed_Image.style.display='inline'; Codehighlighter1_81_110_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_81_110_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_81_110_Closed_Text.style.display='none'; Codehighlighter1_81_110_Open_Image.style.display='inline'; Codehighlighter1_81_110_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> String sayHello(String name)</span><span id="Codehighlighter1_81_110_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_81_110_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">浣犺緭鍏ョ殑鍚嶅瓧涓?</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">name;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <p>鐒跺悗閰嶇疆web.xml鏂囦歡鍙婄浉搴旀枃浠訛紝鐢變簬閰嶇疆鏂囦歡鍐呭澶氾紝鎵浠ユ垜鎶婃簮浠g爜鍙戝竷鍒拌繖閲岋紙<a href="/Files/qin/WebRootWEBINF.rar">閰嶇疆鏂囦歡婧愪唬鐮?/a>錛夛紝鎶婁笅杞界殑鏂囦歡澶硅В鍘嬪悗錛屾妸閲岄潰鐨勬枃浠惰冨埌web錛峣nf涓嬪氨OK浜嗭紝鍦ㄨ繖閲岋紝鎴戝彧璇存濊礬<br /> 6.鏂板緩涓涓猣lex欏圭洰錛屽悕縐頒負flexTest錛屼笉榪囬渶瑕佹敞鎰忕殑鏄湪涓嬮潰榪欎釜瀵硅瘽妗嗕腑瑕侀夋嫨浣犵殑鍐呭杈撳叆鍒頒粈涔堝湴鏂癸細灝辨槸鎵懼埌浣犲垰鎵嶆柊寤虹殑java欏圭洰閲屾壘鍒皐ebroot璺緞錛屽涓嬫墍紺?br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/qin/2.JPG" border="0" /><br /> 濂戒簡錛宖lex欏圭洰鏂板緩濂戒簡錛岀劧鍚庡氨灝嗙浉搴旂殑鏂囦歡鍏寵仈鍒頒綘鍒氭墠鏂板緩鐨勯」鐩噷錛屽茍鑷姩浜х敓flexTest.mxml錛屼笅闈㈡槸鐩稿簲鐨勪唬鐮侊細<br /> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">xml version</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">1.0</span><span style="color: #000000">"</span><span style="color: #000000"> encoding</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">utf-8</span><span style="color: #000000">"</span><span style="color: #000000">?></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><</span><span style="color: #000000">mx:Application xmlns:mx</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">http://www.adobe.com/2006/mxml</span><span style="color: #000000">"</span><span style="color: #000000"> layout</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">absolute</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><</span><span style="color: #000000">mx:Script </span><span style="color: #000000">></span><span style="color: #000000">     <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><!</span><span style="color: #000000">[CDATA[ </span><span style="color: #0000ff">import</span><span style="color: #000000"> mx.rpc.events.FaultEvent;   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span><span style="color: #0000ff">import</span><span style="color: #000000"> mx.rpc.events.ResultEvent;   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      [Bindable]   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">private</span><span style="color: #000000"> var helloResult:String;   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      <br /> <img id="Codehighlighter1_327_380_Open_Image" onclick="this.style.display='none'; Codehighlighter1_327_380_Open_Text.style.display='none'; Codehighlighter1_327_380_Closed_Image.style.display='inline'; Codehighlighter1_327_380_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_327_380_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_327_380_Closed_Text.style.display='none'; Codehighlighter1_327_380_Open_Image.style.display='inline'; Codehighlighter1_327_380_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />      </span><span style="color: #0000ff">private</span><span style="color: #000000"> function sayHello():</span><span style="color: #0000ff">void</span><span style="color: #000000"> </span><span id="Codehighlighter1_327_380_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_327_380_Open_Text"><span style="color: #000000">{   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        ro.sayHello(inputText.text);   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000">    <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        <br /> <img id="Codehighlighter1_457_520_Open_Image" onclick="this.style.display='none'; Codehighlighter1_457_520_Open_Text.style.display='none'; Codehighlighter1_457_520_Closed_Image.style.display='inline'; Codehighlighter1_457_520_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_457_520_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_457_520_Closed_Text.style.display='none'; Codehighlighter1_457_520_Open_Image.style.display='inline'; Codehighlighter1_457_520_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />       </span><span style="color: #0000ff">private</span><span style="color: #000000"> function resultHandler(event:ResultEvent):</span><span style="color: #0000ff">void</span><span style="color: #000000"> </span><span id="Codehighlighter1_457_520_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_457_520_Open_Text"><span style="color: #000000">{   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />          helloResult </span><span style="color: #000000">=</span><span style="color: #000000"> event.result as String;   <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />       }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />       <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   ]]</span><span style="color: #000000">></span><span style="color: #000000">  <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"></</span><span style="color: #000000">mx:Script </span><span style="color: #000000">></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><</span><span style="color: #000000">mx:RemoteObject id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">ro</span><span style="color: #000000">"</span><span style="color: #000000"> destination</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">Hello</span><span style="color: #000000">"</span><span style="color: #000000"> result</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">resultHandler(event)</span><span style="color: #000000">"</span><span style="color: #000000"> endpoint</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">/flexDome/messagebroker/amf</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><</span><span style="color: #000000">mx:HBox x</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">0</span><span style="color: #000000">"</span><span style="color: #000000"> y</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">10</span><span style="color: #000000">"</span><span style="color: #000000"> width</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">100%</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span><span style="color: #000000"><</span><span style="color: #000000">mx:Label text</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">Name:</span><span style="color: #000000">"</span><span style="color: #000000"> id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">nameLabel</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span><span style="color: #000000"><</span><span style="color: #000000">mx:TextInput id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">inputText</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span><span style="color: #000000"><</span><span style="color: #000000">mx:Button label</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">say Hello</span><span style="color: #000000">"</span><span style="color: #000000"> id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">nameButton</span><span style="color: #000000">"</span><span style="color: #000000"> click</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">sayHello()</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span><span style="color: #000000"><</span><span style="color: #000000">mx:Label id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">resultLabel</span><span style="color: #000000">"</span><span style="color: #000000"> text</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">{helloResult}</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"></</span><span style="color: #000000">mx:HBox</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"></</span><span style="color: #000000">mx:Application</span><span style="color: #000000">></span></div> <p>7.涓鍒囧伐浣滃畬鎴愬悗錛屽氨鍙戝竷鍒版湇鍔″櫒閲岃繍琛屽惂http://localhost:8080/flexDome/flexTest.html<br /> 8.榪愯緇撴灉濡備笅錛?br /> <img height="52" alt="" src="http://www.tkk7.com/images/blogjava_net/qin/3.jpg" width="429" border="0" /><br /> 緇欏ぇ瀹惰涓涓涔爁lex鐨勭綉绔欙紝寰堜笉閿欑殑錛?a >http://www.verycd.com/topics/280538/#theCon</a>錛屾敮鎸佸氨欏硅搗鍝?#183;··</p> <img src ="http://www.tkk7.com/qin/aggbug/242298.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/qin/" target="_blank">qin</a> 2008-11-24 17:11 <a href="http://www.tkk7.com/qin/archive/2008/11/24/242298.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>(flex)涓涓畝鍗曠殑flex鐧婚檰瀹炰緥http://www.tkk7.com/qin/archive/2008/10/29/237315.htmlqinqinWed, 29 Oct 2008 02:23:00 GMThttp://www.tkk7.com/qin/archive/2008/10/29/237315.htmlhttp://www.tkk7.com/qin/comments/237315.htmlhttp://www.tkk7.com/qin/archive/2008/10/29/237315.html#Feedback10http://www.tkk7.com/qin/comments/commentRss/237315.htmlhttp://www.tkk7.com/qin/services/trackbacks/237315.html涓嬮潰鏄竴涓猣lex綆鍗曞疄渚?br /> 寮鍙戝伐鍏?flex buider3
涓昏鐭ヨ瘑鐐癸細浜嬩歡璇鋒眰杞彂,鍏跺畠鐩稿叧淇℃伅鏈夋敞閲?br /> 棣栧厛鍦╯rc涓嬫柊寤轟竴涓粍浠訛紝鍛藉悕涓簂oginForm.mxml,鍦ㄨ繖涓粍浠墮噷錛屾湁涓や釜鏍囩錛屼袱涓枃浠跺煙錛屽拰涓涓寜閽紝鐩稿叧浠g爜濡備笅錛?br />

<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="226" borderColor="#88F0DE" title="鐢ㄦ埛鐧婚檰" fontSize="14">
    
<mx:Metadata>
        
//浣跨敤緋葷粺浜嬩歡榪涜鎻愪氦        
        
//[Event(name="loginEvent",type="flash.events.Event")]    
        
//浣跨敤鑷畾涔変簨浠訛紝鍦╫rg.loginForm.LoginFormEvent閲?/span>
        [Event(name="loginEvent",type="org.loginForm.LoginFormEvent")]    
    
</mx:Metadata>
    
<mx:Script>
        
<![CDATA[
            
import org.loginForm.LoginFormEvent; 
            internal function onClick(evt:MouseEvent):
void{
                
//緋葷粺浜嬩歡榪涜璇鋒眰杞彂
                
//this.dispatchEvent(new Event("loginEvent"));
                
//鑷畾涔変簨浠惰姹傝漿鍙?/span>
                var lf:LoginFormEvent = new LoginFormEvent("loginEvent");
                
//鎶婂緱鍒扮殑鐢ㄦ埛鍚嶏紝瀵嗙爜浼犲埌浜嬩歡閲?/span>
                lf.username = userName.text;
                lf.password 
= password.text;
                
this.dispatchEvent(lf);
            }

        ]]
>
    
</mx:Script>
    
<mx:Label x="48" y="38" text="鐢ㄦ埛鍚嶏細" width="70" height="26" fontSize="15"/>
    
<mx:Label x="48" y="92" text="瀵?nbsp; 鐮侊細" width="70" height="25" fontSize="15"/>
    
<mx:TextInput x="126" y="36" id="userName"/>
    
<mx:TextInput x="126" y="90" id="password" displayAsPassword="true"/>
    
<mx:Button x="228" y="142" label="鐧婚檰" fontSize="15" id="login" click="onClick(event)"/>    
</mx:Panel>
涓嬮潰鏄鐞嗚〃鍗曠殑actionscript浠g爜錛氬寘涓簅rg.LoginForm ,鍚嶄負LoginFormEvent錛岃綾婚渶緇ф壙Event
package org.loginForm
{
    
import flash.events.Event;

    
public class LoginFormEvent extends Event
    
{
        
public var username:String = "";
        
public var password:String = "";
        
public function LoginFormEvent(type:String)
        
{
            
super(type, falsefalse);
        }

        
    }

}
浜嬩歡嫻嬭瘯綾伙紝鎶妉oginForm.mxml娣誨姞鍒?鍚嶄負event2.mxml  mxml application鏂囦歡閲?br />
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">
    
<mx:Script>
        
<![CDATA[
            
import org.loginForm.LoginFormEvent;
            
import mx.controls.Alert;
            
//internal function login(evt:Event):void{
                
//Alert.show("浣犵櫥闄嗘垚鍔?,"鎻愮ず");
            
//}
            internal function login(evt:LoginFormEvent):void{
                
if(evt.username == "gao" && evt.password == "qin"){
                    Alert.show(
"浣犵櫥闄嗘垚鍔?/span>","鎻愮ず");
                }
else{
                    Alert.show(
"浣犵櫥闄嗗け璐?/span>");
                }

            }

            
public function init():void{                
                fLogin.addEventListener(
"loginEvent",login);
            }

        ]]
>
    
</mx:Script>
    
<ns1:loginForm x="34" y="90" id="fLogin" loginEvent="login(event)">
    
</ns1:loginForm>    
</mx:Application>

浠嬮潰濡備笅錛?br />    
    

qin 2008-10-29 10:23 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲AV无码久久精品成人| 国产片免费在线观看| 亚洲AV中文无码字幕色三| 国产美女视频免费观看的网站| 国产18禁黄网站免费观看| 黄色毛片免费网站| 亚洲高清成人一区二区三区| 日本特黄特色AAA大片免费| 亚洲精品无码专区2| 国产成人免费ā片在线观看老同学 | 色爽黄1000部免费软件下载| 又粗又大又长又爽免费视频| 日韩大片在线永久免费观看网站| 亚洲国产香蕉人人爽成AV片久久| 中文在线免费不卡视频| 亚洲男人第一av网站| 99久久这里只精品国产免费| 亚洲精品伊人久久久久| 免费a级毛片视频| 国偷自产一区二区免费视频| 亚洲国产精品成人精品小说| 成人免费无码精品国产电影| 国产精品青草视频免费播放| 亚洲AV无码日韩AV无码导航| 最近中文字幕国语免费完整| 亚洲色偷偷色噜噜狠狠99| 亚洲国产精品成人| 99ee6热久久免费精品6| 亚洲精品无码不卡在线播放| 亚洲精品国产福利一二区| 十九岁在线观看免费完整版电影| 亚洲乱码中文字幕小综合| 免费国产在线观看不卡| 久久精品免费一区二区三区| 亚洲国产成a人v在线观看| 亚洲午夜爱爱香蕉片| 亚洲黄色免费网址| aa午夜免费剧场| 亚洲免费福利在线视频| 国产亚洲精品资在线| 最新中文字幕电影免费观看|