FlexBuilder遠端偵錯WEB應用

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   ar   strong   檔案   sp   

Flex的開發工具用的FlexBuiler 3,web server用的apache。

1 首先要安裝IE對應的flashplayer的debug版本,下載Flash player 11.8安裝,:

http://download.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug.exe

 

首先建立一個Web類型的Flex Project

編輯工程的test.mxml檔案,介面只有一個按鈕,點擊按鈕驗證obj1和obj2是否相等。代碼如下:

<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"><mx:Script><![CDATA[ public function testFunction():void{var obj1:String = new String("1");var obj2:String = new String("1"); trace(obj1==obj2);}]]></mx:Script><mx:HBox height="100%" verticalAlign="middle"><mx:Button label="測  試" id="testButton" click="testFunction()"/></mx:HBox></mx:Application>


編輯一個簡單的test.html,把test.swf放到頁面裡

 <html > <title></title> </head><body scroll="no">   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"id="test" width="100%" height="100%"codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="test.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="sameDomain" /><embed src="test.swf" quality="high" bgcolor="#869ca7"width="100%" height="100%" name="test" align="middle"play="true"loop="false"quality="high"allowScriptAccess="sameDomain"type="application/x-shockwave-flash"pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object> </body></html>


把以上兩個檔案放入apache的web目錄的test下,例如:http://10.43.104.211:2323/test/test.html

進入flexbuilder的debug設定介面,Run-Debug-Other,進行如下設定,URL or path to launch 的幾欄填寫遠端的url地址:

設定完成後,點擊Debug,這時會自動彈出一個瀏覽器頁面,Flexbuilder的Console頁顯示進行中Debug調試

 

點擊IE頁面上的測試按鈕:

大功告成

FlexBuilder遠端偵錯WEB應用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.