If you need to switch the complete view, a viewstack is the easier solution imho. Cheers, Ralf.
On 1/12/07, erikbianchi <[EMAIL PROTECTED]> wrote:
I'm a flex n00b but long time Flash Developer and am having some trouble dealing with states. Basically, I can get State:AddChild to work, but this only adds a component / ui element to an existing view. What I'm looking to do is toggle between two completely separate views. For example: Login View: Username Label / TextInput Password Label / TextInput Submit Button Userinfo View: User pictures Bio etc So when the app first loads it displays the Login View and if the user logins correctly I get ride of the login view and display the UserInfo View. This view looks completely different then the Login so I don't think I want to use AddChild, but then again I have no idea. My terminology may be all wrong here so my apologies. =) Help! -erik
-- Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35

