Skip navigation
Currently Being Moderated

Receive "data" in a view

Mar 14, 2013 9:03 AM

I didn't have luck asking this in flex, is there anyone here that can help me out?

 

Im wondering how I can use the "data" in a "case" statement in view 2?

I currently only use it with "text="{data.Blah blah}"

 

 

View 1:

 

protected function handleClick(event:MouseEvent):void

   

   { 

       

    var tmpObj1:Object = new Object();   

   

    tmpObj1.Tool1Selected_1 = ToolSpinnerTool1Selected;

    tmpObj1.Tool2Selected_2 = ToolSpinnerTool2Selected;

    tmpObj1.AntennaSelected_3= AntennaSelected;

            

    navigator.pushView(ToolView, tmpObj1);

   

       

   }

 

 

View 2:

 

<s:Label id="lblName" x="191" y="51" width="45" height="22" text="{data.Tool1Selected_1}"/>

 

<s:Label id="lblName2" x="102" y="46" width="53" height="24" text="{data.Tool2Selected_2}"/>

 

<s:Label id="lblName3" x="102" y="77" width="63" height="32" text="{data.AntennaSelected_3}"/>

 
Replies
  • Currently Being Moderated
    Mar 15, 2013 12:58 AM   in reply to fsoender

    Be more specific about your use case, show a screenshot to illustrate the thing you want to achieve.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2013 8:36 AM   in reply to fsoender

    Sorry, I didn`t mean a screenshot of your code, but your View/application/Stage

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points