dynamic set variables


/ Published in: ActionScript
Save to your folder(s)

动态设置变量,并赋值


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.