2010-12-28 19:19:00 genie1215

12/28ac上課資料(1)

flash與php結合

var sent_data:URLVariables = new URLVariables
//先定義容器
sent_data.standentname = "ramio"
sent_data.standentpassword = "1234"

var a_URL:URLRequest = new URLRequest("sample.php")
//定義交通車                         //傳送到哪
a_URL.method = URLRequestMethod.POST;
//指定車內的東西
a_URL.data = sent_data
sendToURL(a_URL)
//執行這些事情