在 Adobe Flex (Actionscript) 中的视图之间传递数据
我已经阅读了大量有关此问题的在线教程,但似乎无法得到明确的答案...
View1.mxml
navigator.pushView(views.view2, {response:"BLAH"});
View2.mxml
<fx:Script>
<![CDATA[
var result:String = // FIRST VIEW RESPONSE WHICH = BLAH
]]>
</fx:Script>
这是如何完成的?当然应该很简单吧?网上的教程看起来都很深入! 谢谢 菲尔
Ive read a ton of online tutorials about this and cant seem to get a definite answer...
View1.mxml
navigator.pushView(views.view2, {response:"BLAH"});
View2.mxml
<fx:Script>
<![CDATA[
var result:String = // FIRST VIEW RESPONSE WHICH = BLAH
]]>
</fx:Script>
How is this done? Surely it should be simple? All the tutorials online seem very indepth!
Thanks
Phil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在查找的属性称为
data
。它将在施工后设置。因此,一旦设置了data
,您就需要访问data.response
。The property you are looking for is called
data
. It will get set AFTER construction. So, oncedata
is set, you want to accessdata.response
.明白了
呵呵
Got it
Duhhh