Friday, March 26, 2010

Text Field

I have created an application that shows a password field.
what i want it to do is show as password then when the user clicks
a checkbox it reverts to normal text and vise-versa. problem is i
dont know much actionscript.Text Field
just use: my_txt.password=true or my_txt.password=false

where my_txt is instance name of ur input textfield.

for example when u have b1,b2 buttons , code below will
switch password mode:

b1.onPress=function(){

my_txt.password=true

}

b2.onPress=function(){

my_txt.password=false

}



No comments:

Post a Comment