1 Reply Latest reply on Jan 8, 2007 1:26 AM by M. Huisman

    Changing the state of a different component?

    MateoMpls
      My main.mxml file has several components and I want a button in one of these components to change the state of a different component. I have tried something like: componentName.currentState='newState'

      note: in this above sccenario, componentName was used where the component was componentName.mxml in my components folder. I've also tried to add an id or label to the component file to use to refer to it, but I get an error message saying I can't assign an id to a root tag..

      I'm sure it's easy to have a button in a component change the view state of another component, but I'm missing something.. help!

      Mateo