Archive

Posts Tagged ‘Textfield Listener’

Making the first letter in a textfield Uppercase

March 19th, 2008 Flashnutz No comments
var myKeyListener = new Object();
myKeyListener.onKeyUp = function() {
var myString = myTextfield.text;
var firstLetter = (myString.charAt(0)).toUpperCase();
var remainderLetters = (myString.substring(1)).toLowerCase();
var myNewString = firstLetter+remainderLetters;
myTextfield.text = myNewString;
};
Key.addListener(myKeyListener);

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Textfield Listener

February 14th, 2008 Flashnutz No comments
//construct the listener object
myListenerObject = new Object();
 
myListenerObject.onChanged = function(txt) {
//perform this when textfield value has changed
execute();
}
 
//call the TextField.addListener method to register the object
Textfield.addListener(myListenerObject);

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

SEO Powered by Platinum SEO from Techblissonline