It is covered in the doc in the chapter on the Application container: http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html Stephen
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, January 22, 2007 6:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, & Transitions I'm on the Flex framework team in San Francisco. Glad to be of help. I'm not sure where (if?) this is covered in our doc set. Where would you expect to look? - Gordon ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Terry Sent: Monday, January 22, 2007 2:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, & Transitions GORDON!!!!! Where the hell are you in the country? I'm coming to kiss you. :)~ J/K But really, thank you!!! When you are just starting out in a language, the simplest things are the hardest. I've been coding C++, VB, C#, VB.NET for 12 years (3 on the later), but learning this - has been like jumping into the abyss. Thanks again. ~David T. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, January 22, 2007 4:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, & Transitions It sounds like what you really want to know is "If I have component <B> inside of component (or application) <A>, how can ActionScript code in B access A's properties and methods?" (Setting the currentState property of the app from one of its components is simply a special case of this.) The answer is by using the parentDocument property. - Gordon ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Terry Sent: Monday, January 22, 2007 1:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, & Transitions If it was that simple I would not be asking for help. I can figure out how to change state when all controls are in the same application, but I can't figure out how to make a "custom control" change the state of the parent. If the <comp:Login> control has the register button, and this is the 'parent' page, how does the 'login' tell the parent to change to the 'Register' state? ~David T. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" xmlns:comp="assets.components.*" currentState="Login"> <mx:Style source="../assets/css/main.css"/> <mx:states> <mx:State name="Register"> <mx:AddChild position="lastChild"> <comp:signup1 horizontalCenter="0" verticalCenter="0"/> </mx:AddChild> </mx:State> <mx:State name="Login"> <mx:AddChild position="lastChild"> <comp:login horizontalCenter="0" verticalCenter="0"> </comp:login> </mx:AddChild> </mx:State> </mx:states> </mx:Application> ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of theduderino82 Sent: Monday, January 22, 2007 3:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Please Help - Components, States, & Transitions It's really much more simple then you think. There are some good tutorials on the flex start page. Just type in the search "transition" or "state".