in first screen i have username and password and submit button.wen i
click on the button then it will chk username and password with
database.if it is success then i want to go to second screen(that
contains datagrid and one button).If user not authenticated,then i
want to go for first scren.(it will display ur usrname or pwd is not
There are examples out there on how to do this, just do a search. I have this working in my application, but my code might not be relevant to what you're doing since I'm using Mate as a framework.
You can also go through the "Flex in a week" tutorial which might help you more on getting started with flex.
Thank you for sending the link.It is very helpful for me.