作者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
1F:→ tingto:试试 navigateToURL(new URLRequest("网址","_self"); 02/15 15:08
2F:推 zswolf:avigateToURL(new URLRequest("path"), "_self") 02/15 15:22
3F:→ zswolf:默契推 02/15 15:22
4F:→ richmind:後来发现不是程式码错误,是输出错误,谢谢大大的帮忙! 02/16 14:24