开发者

How to taken push view object into next view in flex

开发者 https://www.devze.com 2023-04-08 02:23 出处:网络
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 {dataobje

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

精彩评论

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