[問題] LOADVARS
我想從這個網頁讀資料
http://submarine.up.md/mse/show.php?team=3
讀出來是一系列有相似性的資料
我在flash裡用
System.useCodepage=true;
var inde:Number;
var nam_lv:LoadVars=new LoadVars();
nam_lv.onLoad=function()
{
}
nam_lv.load("http://submarine.up.md/mse/show.php?team=3");
當按鍵按下時
on(release)
{
nam_txt.text=nam_lv.nam3;
fro_txt.text=nam_lv.fro3;
pic_txt.text=nam_lv.pic3;
favor_txt.text=nam_lv.favor3
;
}
如果我有十筆資料 那我想透過按鍵選上一筆 下一筆 就只能這樣笨笨的指定變數嗎?
我有辦法把資料變成陣列嗎?
像是這樣
on(release)
{
nam_txt.text=nam_lv.nam[3];
fro_txt.text=nam_lv.fro[3];
pic_txt.text=nam_lv.pic[3];
favor_txt.text=nam_lv.favor[3];
}
剛試過把php裡的資料印成陣列的樣子,但是都會變成undesign
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.141.193.235
推
06/27 09:50, , 1F
06/27 09:50, 1F
討論串 (同標題文章)
Flash 近期熱門文章
PTT數位生活區 即時熱門文章