Posted By

lzyy on 06/23/08


Tagged

variableset


Versions (?)

dynamic set variables


 / Published in: ActionScript
 

动态设置变量,并赋值

  1. params = "vid=2008060823253&auto_start=true&show_ad=false";
  2. //params_arr = params.split("|");
  3. for(var i=0;i<params_arr.length;i++){
  4. tmp_arr = params_arr[i].split("=");
  5. set(tmp_arr[0],tmp_arr[1]);
  6. }
  7. show_txt.text = "vid: "+vid+" auto_start: "+auto_start+" show_ad: "+show_ad;

Report this snippet  

You need to login to post a comment.