--- In [email protected], "Gopi" <sshankar0...@...> wrote:
>
> I can give you a solution, but i am not sure this is the beat one out.
>
> <mx:Button label="Register" id="submit" click="checkUser();"/>
>
> 1. Create a instance of the MXML should be loaded like this in the checkuser()
>
> var userform:UserForm = new UserForm();
> var myCan:Canvas = new Canvas();
> parentApplication.removeAllChildren();
> myCan.addChild(userform);
> parentApplication.addChild(myCan);
>
> Here the UserForm is the MXML to be loaded after clicking the button
> "Register".
>
> Let me know the result after your try.
>
thanks Gopi..
i hav used ViewState to switch between flex components.
this works but am not sure if its the right way to do it.
m doing a project on Online Shopping using flex..
so thts why i wnt to ask this