2 Replies Latest reply on Jun 20, 2008 8:36 AM by Wolli World

    How to set the value of something in a component from the main application?

    Wolli World Level 1

      Maybe I've been working on this too long, but I can't figure out how to set the value of the text property of a text input field in a component from my main application in an mx:Script block. I have a component called Login in the components folder, and I need to set the text value of empNum. In my mxml declaration at that the top, I've declared these components as xmlns:c="components.*" So logically, the property I'm trying to set is c.Login.empNum.text. I can't figure out the correct syntax to get this to work, and I've tried everything I can think of. Does anyone have any suggestions? I'm thinking this should be an easy one, and I'm just missing something.