php 使用 addVariable 方法向我发送一些变量,但我无法在 as3 上获取这些变量
php send me some variables with addVariable method but i cant get that variables on as3
var myId = this.root.loaderInfo("myId");
当我尝试使用 AS3 捕获此变量时出现此错误:
Error : Attempted access of inaccessible method loaderInfo through a reference with static type flash.display:DisplayObject.
我也导入 flash.display.DisplayObject
但无法从 php 中获取值。
我认为是:
trace(this.root.loaderInfo.parameters.myId);
loaderInfo 不是方法
var myId = this.root.loaderInfo("myId");
当我尝试使用 AS3 捕获此变量时出现此错误:
Error : Attempted access of inaccessible method loaderInfo through a reference with static type flash.display:DisplayObject.
我也导入 flash.display.DisplayObject
但无法从 php 中获取值。
我认为是:
trace(this.root.loaderInfo.parameters.myId);
loaderInfo 不是方法