作者rita167 (振作)
看板Flash
標題Re: 請問getURL 的問題
時間Thu Apr 13 13:13:18 2006
※ 引述《rita167 (振作)》之銘言:
: 推 abgne:把它寫在Skip上...就可以了...應該是用"_self"沒錯啦..
因為一直都跳出error
我把指令加在skip的按鈕上
並取了實體名稱<skip_btn>
指令為
skip_btn.onRelease = function() {
getURL("
http://www.pchome.com.tw", "_self");
};
結果一直出現錯誤訊息的警示
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear
within on handler
skip_btn.onRelease = function() {
Total ActionScript Errors: 1 Reported Errors: 1
看不懂錯在哪裡...請指教
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 128.192.177.91
推 kgl:指令放在按鈕上應該是on(release){getURL(...); } 04/13 13:23
推 abgne:把那段寫在影格上.... 04/13 13:30