문제

I using flex 4.6 to build mobile application. i want to pass objects between views. i use in the first view

            User.name = Username.text;
            User.Pass = Password.text;
            navigator.pushView(views.masterHomeView , User)

and in the second view

    <s:Label id="b" text="{data.name}"/>
    <s:Label id="lbl" text="{data.Pass}"  />

and it worked well for represent the data in the labels , but i want to review the object in the action script not in mxml to pass values of object to function

Thanks in advance

도움이 되었습니까?

해결책

The problem solved by using

            override public function set data(value:Object):void
        {
            var x = value.name;
            var y = value.Pass;
        }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top