作者richmind (李小喵)
看板Flash
標題[問題] 想請教各大大們一個問題
時間Tue Feb 15 14:40:05 2011
若我在網頁上做了三個按鈕,不想要讓它另開視窗,而是只想要點一下
超連結,就直接進入網頁中,那要如何修改程式碼呢??
我的程式碼如下,謝謝各位大大!
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
→ tingto:試試 navigateToURL(new URLRequest("網址","_self"); 02/15 15:08
推 zswolf:avigateToURL(new URLRequest("path"), "_self") 02/15 15:22
→ zswolf:默契推 02/15 15:22
→ richmind:後來發現不是程式碼錯誤,是輸出錯誤,謝謝大大的幫忙! 02/16 14:24