Please post in the correct list. This one is for custom components. Also please do not cross post.
Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of call_me_hems Sent: Wednesday, November 05, 2008 1:43 AM To: [email protected] Subject: [flexcomponents] how to avoid the page to load until a piece of code is executed Hello, i have one problem in flex 3, but before that let me explain u what i'm trying to do. i have built a login form where i'm sending data to coldfusion component(*.cfc) file using Remote Object Method. If the login information is matched with database then i create a session variable and send the true boolean value to login page where it redirect to next page. In Next Page i have just showed who is login and a LOGOUT Button. i have used preinitialize method in application tag which executes a function where i have called a coldfusion function to check whether session variable is defined or not , if yes then the page is displayed and if not then the page is redirected to login page. . This piece of code is working very fine to me. Now the problem is that, Suppose the user is not logged in and i'm directly pasting the URL of second page then it displays the page for few seconds and then it is redirected to login page. i want that it should not display anything until the session varible is checked. how could i do this. Sample url is as follows: http://freelancingleaders.com/intakeflow/IntakeFlow.html http://freelancingleaders.com/intakeflow/IntakeFlow.html UserName: hemant Password: garg. It's very urgent. Thanks in advance. ------------------------------------ Yahoo! Groups Links
