I have an application where I have two states - a Login state and a base state. I created a custom component for my login box and it is displayed when I am in the login state. I have instantiated the component within the application with the <custom:LoginUser/> tag. When I was using the login form (<mx:Form>) directly within the application, it was in the login state and when the user put in their credentials, a database was queried to see if the user name and password were in a user table(not secure, its just a local test). If teh username and password were in the table, the next command was to change the state via the "currentState ="; command back to the base state where all the other application pieces were.
Well, now that I am collecting the login information in the custom component, passing the data to a data transfer object (dto), then into the application, I can't figure out how to change the state. I also don't know (given what I am trying to do) if I should do the db query in the custom component before I send the data to the dto and back to the application or if I should just collect the information, pass it to the application via the dto, and le the application do the rest. The db query is done via the httpservice call. Let me know your thoughts. andrej770

