StupidBeauty
Read times:875Posted at:Fri Jul 5 19:35:41 2013
- no title specified

转载 LoaderInfo parameters in as3

Action script 3中,在swf文件路径后面带的?parameterA=aaa这种参数,可通过root.loaderInfo.parameters.parameterA来获取。

http://stackoverflow.com/questions/6057211/loaderinfo-parameters-in-as3

亮点:

The loader variables are captured by flash either by get variables inside the URL or by flashvars. You've got it exactly right, its key/value pairs. So basically if you had a URL like this:

http://somewhere.com/movie.swf?test1=10&test2=20&benny=benny

Inside flash you access these just like you've already been doing:

var numberString:String = root.loaderInfo.parameters.test1 as String;

var number:Number = root.loaderInfo.parameters.test2 as Number;

var uName:String = root.loaderInfo.parameters.benny as Strin

Doutzen Kroes

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4