-
Slinky Designs
Can I Keep Input Text To Upercase?
is there anyway i can set an input box to stay upercase?
-
Senior Member
Hi,
try this where myText_txt is the instance name of the textbox
code:
myText_txt.onChanged = function() {
myText_txt.text = myText_txt.text.toUpperCase();
}
-
Slinky Designs
so my text box is called "login"
my code on a frame should be:
Code:
login.onChanged = function () { login.text = login.text.toUpperCase();};
dont work!
-
Slinky Designs
im using flash 5 by the way incase that helps!
-
Senior Member
ah, that would work in MX only...
in flash 5 I think you could create a movie clip and attach these actions to it,
code:
onClipEvent(keyDown) {
_parent.login = _parent.login.toUpperCase();
}
-
Slinky Designs
ah ncie one amte! worked a treat!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|