from login dispatch a custom event containing the string
then have index listen for the event
Thanks for your reply...
Actually i have two mxml application...one is login.mxml application, after authentication page is navigated to index.mxml application, i want to send user id to index.mxml application..
what do you mean by application?
You mean you have a login component and an index component inside one application?
you could make a static class to store global data, have the login set the user data and dispatch an event, then the index component can access the data through the static variables
if you mean two completely seperate applications, fisrt thats a strange way to do it. But you could use a server side session to store variables.Or you could use the local shared object, but server side is better.
Put it in the query string to the page that contains the second application, then use ExternalInterface to read it or flash vars to pass it in.