flash 中如何外部传参

WBOY
Release: 2016-06-13 13:39:11
Original
718 people have browsed it

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是个参数) 急 谢谢回答者!


------解决方案--------------------
用函数!传值 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!