开发者

How to taken push view object into next view in flex

My problem is that when I try to pass an object from the navigator.pushV开发者_高级运维iew(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to the passed dataobjects property.


You have the passed object available in 'data' property. You can easily set your new local variable in activateHandler as:

var myVar:String = data.myPassedVar;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜