您好,欢迎访问一九零五行业门户网

flash 中如何外部传参

flash 中怎么外部传参?
on (press)
{
  var file = new loadvars();
  file.load(/my.php);
  file.onload = function (success)
  {
  if (success)
  {
  trace (file.roulette);
  if (!isnan(file.roulette))
  {
  start_mc._visible = false;
  p1 = 0;
  p2 = 0;
  r = 0;
  _root.bc2._rotation = 180 - math.round(math.random() * 360);
  _root.bc3._rotation = 180 - math.round(math.random() * 360);
  s1 = math.round(math.random() * 8) + 2;
  s2 = math.round(math.random() * 8) + 2;
  roulette = file.roulette;
  roulettestr = file.roulettestr;
  trace (roulettestr);
  trace (加载成功 ok);
  }
  else
  {
  message._visible = true;
  message.info.htmltext = file.roulettestr;
  } // end else if
  }
  else
  {
  set(message._visible, true);
  message.info.text = 读取记录错误,请刷新;
  } // end else if
  };
}
  请教一下 有没有看的懂,请问 function (success) 怎么传给它参数啊? 传给success (success是个参数) 急 谢谢回答者!
------解决方案--------------------
用函数!传值
其它类似信息

推荐信息