作者kawasumimai (魔物を討つ者)
看板Flash
標題[問題] AS2.0+php Loadvars.send開新視窗?
時間Tue Jun 15 12:32:55 2010
版本是AS2.0
使用php接收訊號
現在的問題是
當Flash傳送訊號給PHP
(PHP的目的就只是讀寫另一個xml)
回傳的訊號一定會往瀏覽器跑
導致開新一個php的視窗
(當然,白白的一頁)
有沒有辦法讓她不要這樣?
我原本是使用
_root.getURL("網址.php?name="+_root.pname.text+"&
score="+_root.sf.text+"&time="+Math.random(),"_blank");
後來經過題點
使用了
_root.sub_lv = new LoadVars();
_root.sub_lv['name'] = _root.pname.text;
_root.sub_lv['score'] = _root.sf.text;
_root.sub_lv.send("網址.php","POST");
可是還是不行啊!!!
換成使用sendAndLoad的話
就連變數都傳送不過去php了
爬了一下google到的英文論壇
怎麼聽說這是LV.send的bug............
有沒有辦法解決啊?
--
▼▼
/﹊
﹚
—
//
‘ \ ╲ ◥◣
──
ノ /
◤▃
▄▄▄◣ █ 川澄 舞˙兔子mode
— ~
︶◢◣▄ ◢◤ @binshaunMKII
﹊
▼◤
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.121.211.92
→ aquarianboy:建議你可以用firefox的外掛看看到底它送了什麼東西出 06/15 13:06
→ aquarianboy:去,或是附個網址或原始檔吧,我覺得應該不是bug 06/15 13:06
→ aquarianboy:只是不熟悉它的使用方法罷了 06/15 13:07
推 terrylchen:不是bug,是LoadVars.send本來就一定會新開視窗,F1有 06/15 14:47
→ terrylchen:寫,如果不想他新開視窗,請用sendAndLoad 06/15 14:47
→ terrylchen:啊沒注意到你前面有寫sendAndLoad齁... 06/15 14:48
→ terrylchen:變數了啊 06/15 14:50