Like everything, there are a million ways to do this. And best practices involve opinions sometimes...but I would say the best practice is to fire off an event in your login cfc result handler, and have the parent app listen on that loginSuccessfull event. Then have this.currentState = "Home", etc in loginSuccessfull event handler in the parent app. Communication via events keeps everything flexible and independent. Karl Cynergy
________________________________ From: [email protected] on behalf of stephen50232 Sent: Tue 2/27/2007 11:23 AM To: [email protected] Subject: [flexcoders] changing states from within a component Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC and checked, the result is then checked. If the login is successful I want to be able to change the state in the main application file from the Login state to the Home state, originally I tried using: this.currentState = 'Home'; But this was in the Login component, which doesn't have states, so that didn't work. What is the best practice for components to call the main application to perform tasks like changing the state? Thanks Stephen

