flash 中如何外部传参

WBOY
发布: 2016-06-13 13:39:11
原创
714 人浏览过

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


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

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!