伴侣调度员标签
我需要在调度程序标签中传递一个变量...例如
var google:EventName = new EventName(EventName.ADD_User,user);
dispatchEvent(google);
现在当我转到 Mate 调度程序标签时...我如何传递值 user.
<mate:Dispatcher id="myDispatcher" generator="{EventName}"
type="{EventName.ADD_User}">
<mate:eventProperties>
<mate:EventProperties
myProperty="myValue"
myProperty2="100" />
</mate:eventProperties>
</mate:Dispatcher>
现在我如何在配合调度程序标签中传递用户。
I need to pass a variable in dispatcher tag... for instance
var google:EventName = new EventName(EventName.ADD_User,user);
dispatchEvent(google);
Now when i go to Mate dispatcher tag... how can i pass the value user.
<mate:Dispatcher id="myDispatcher" generator="{EventName}"
type="{EventName.ADD_User}">
<mate:eventProperties>
<mate:EventProperties
myProperty="myValue"
myProperty2="100" />
</mate:eventProperties>
</mate:Dispatcher>
Now how can i pass the user in the mate dispatcher tag.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将 user 声明为 GoogleEvent.as 类的属性。对于 GoogleEvent.as:
并在您的事件声明中:
然后从事件地图中的事件获取用户值:
如果您有任何疑问,请告诉我。我希望这有帮助!
You would have to declare user as a property of your GoogleEvent.as class. For GoogleEvent.as:
And in your event declaration:
Then to get the user value from your event in your Event Map:
Let me know if you have any questions. I hope this helps!