[問題] 想請教各大大們一個問題

看板Flash作者 (李小喵)時間15年前 (2011/02/15 14:40), 編輯推噓1(103)
留言4則, 3人參與, 最新討論串1/1
若我在網頁上做了三個按鈕,不想要讓它另開視窗,而是只想要點一下 超連結,就直接進入網頁中,那要如何修改程式碼呢?? 我的程式碼如下,謝謝各位大大! stop(); function a1(evt:MouseEvent):void{ navigateToURL(new URLRequest("http://web.jjes.tp.edu.tw/enable/index.php")); } chinese.addEventListener(MouseEvent.CLICK,a1); function a2(evt:MouseEvent):void{ navigateToURL(new URLRequest("http://www.jjes.tp.edu.tw/english/index.html")); } english.addEventListener(MouseEvent.CLICK,a2); function a3(evt:MouseEvent):void{ navigateToURL(new URLRequest("http://www.jjes.tp.edu.tw/nobarrier/index.htm")); } accessibility.addEventListener(MouseEvent.CLICK,a3); function a4(evt:MouseEvent):void{ navigateToURL(new URLRequest("http://web.jjes.tp.edu.tw/enable/index.php")); } skip1.addEventListener(MouseEvent.CLICK,a4); ------------------------------------------------ 是不是改滑鼠事件就好了呢?要怎麼修改呢? 我用的軟體是adobe flash的cs5,謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.21.153.253

02/15 15:08, , 1F
試試 navigateToURL(new URLRequest("網址","_self");
02/15 15:08, 1F

02/15 15:22, , 2F
avigateToURL(new URLRequest("path"), "_self")
02/15 15:22, 2F

02/15 15:22, , 3F
默契推
02/15 15:22, 3F

02/16 14:24, , 4F
後來發現不是程式碼錯誤,是輸出錯誤,謝謝大大的幫忙!
02/16 14:24, 4F
文章代碼(AID): #1DMX_70R (Flash)
文章代碼(AID): #1DMX_70R (Flash)