Hi 
I am trying to set the visibility of some components which are in
different modules and my code is not working. There is login screen in
which i have provided forgot password link and in which there are 3
components which are by default set invisible. Whenever user changes
his password by going into the system i an using amfPHPH for sending
data to server and as soon as data is sent then I need to enable the
visibility of the hidden components true, The sending of data is in
different module. . My program is grabbing the data from PHP but it is
not setting the visibility of the components true, I guess I am
screwing in module communication in my program.I have two module one
if ForgotPassword.mxml in login folder and my other module where I am
re setting the password is seperate folder named AccountSettings and
the file name is AccountSetting.mxml. I imported the moudle and it is
showing all the properties of my imported module but is not switching
the visibility property and even if the data has been changed still
the components have been invisible. Can anyone please help me in
fixing this issue.
Thanks for your help
Below is my code

/*Forgot Password Module*/
<mx:TextInput id="txt_Enter_SecurityAnswer" x="190" y="97" width="213"
visible="false"/>

<mx:Button id="enterSecurityQuestion" x="275" y="138" label="Enter"
visible="false"/>

<mx:Label id="lblCS" x="411" y="99" text="Case Sensitive" width="205"
visible="false"/>
/*Account Setting Module*/
import com.Pelco.login.ForgotPassword;

public var ForgotPasswordComponenetVisibility:ForgotPassword=new
ForgotPassword();
public var boolSaveConfirmed:Boolean;
function onclickSave(evt:MouseEvent):void
{
//Storing data back to server
amf.writePassword.send(_newPassword);
boolSaveConfirmed=true;
}

//This boolean checks if the button has been clicked
if(boolSaveConfirmed)
{
//Setting the state of the forgot password components to visible on
setting new password and security question
                                                                                
                                
ForgotPasswordComponenetVisibility.lblCS.visible=true;
                                                
ForgotPasswordComponenetVisibility.enterSecurityQuestion.visible=true;
                                                
ForgotPasswordComponenetVisibility.txt_Enter_SecurityAnswer.visible=true; 
}
                                                

Reply via email to