如何在函数中转换字符串并与对象连接?
我在actionscript 3中有以下代码:
var async:AsyncToken;
async = bridge.retornamenu();
桥是一个远程对象,已实例化。 retornamenu() 是我希望在 amfphp 中打开远程对象的函数。
然而 retornamenu() 是一个动态函数,它会变成另一个函数,但我无法在运行时运行它,
例如
var stringfunction:String = "retornamenu()" // this name is dynamic.
var async:AsyncToken;
async = bridge.stringfunction;
但是这种方式不起作用,不执行函数 retornamenu();
有人可以帮助我吗? 我的解决方案落后了几天,我的项目停止了,
提前致谢
I have the following code in actionscript 3:
var async:AsyncToken;
async = bridge.retornamenu();
The bridge is a remote object, instantiated.
The retornamenu() is the function that I want the remote object open in amfphp.
However the retornamenu() is a dynamic function, which turns another function, but I can not run it at runtime,
example
var stringfunction:String = "retornamenu()" // this name is dynamic.
var async:AsyncToken;
async = bridge.stringfunction;
But this way does not work, not perform the function retornamenu();
someone could help me?
I am a few days behind the solution, my project stopped,
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
getOperation()
和send()
它。如果函数有参数,可以通过
send(args)
传递Use
getOperation()
andsend()
it.If there are arguments to the function, you can pass it through
send(args)