获取SWF参数传值

var url:String = _root._url;
var query:String = url.substring(url.indexOf("?")+1);
var arr:Array = query.split("&")
var list:String = "";
for(var i=0;i<=arr.length-1;i++){
     list += arr[i].split("=")[0] + "的值是:" + arr[i].split("=")[1] + ";"
}
t1.text = list;
posted @ 2011-01-06 15:35  Rex.He  阅读(209)  评论(0编辑  收藏  举报