Yeah just use PopUpManager like so:
LoginPop = new Panel();
LoginPop.title="Please Login";
LoginPop.width=600;
LoginPop.height=500;
LoginPop.addChild(LoginModule);
LoginModule.loadModule("Login.swf");
PopUpManager.addPopUp(LoginPop,this,true);
PopUpManager.centerPopUp(LoginPop);
Dump it in the application from the function: creationComplete = "LoginVerify()"
Whereby LoginVerify() is the code above.
Of course.. if you actually want it to use the token service or login screen that's a different step.
Depending on your audience you might want to just use IIS and Windows Authentication and protect the entire directory.
You will have to map all the files to go through C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll but that can easily be done using 'wild card application maps' in IIS.
That's how I do it for a lot of internal applications.
Drew
That's the only secure way to go. Using Flex as your login screen / validation could be very dangerous from a security stand point.
I would still look at locking down the entire DIR some how to protect direct access to the .swf file through a URL.
Drew