7 Replies Latest reply on May 30, 2006 8:55 AM by MateoMpls

    How do I change the state of a component outside of that component?

    MateoMpls Level 1
      I have a component panel with multiple view states that I have included in my main mxml file. I want a button in the main file to change the view state of my component. How do I do this?

      click="currentState='Logged In'" works if my button is in the component's mxml file, but I want a button in the main mxml file to do the same thing.

      I also named my component "LoginPanel" in the main mxml and tried click="currentState='LoginPanel.Logged In'" and it still doesn't work..

      Any help would be greatly appreciated..

      Mateo