center_txt.text = "short text";
center_txt.border = true;
right_txt.text = "short text";
right_txt.border = true;
true_txt.text = "short text";
true_txt.border = true;
false_txt.text = "short text";
false_txt.border = true;
// create a mouse listener object to detect mouse clicks
var myMouseListener:Object = new Object();
// define a function that executes when a user clicks the mouse
myMouseListener.onMouseDown = function() {
left_txt.autoSize = "left";
left_txt.text = "This is much longer text";
center_txt.autoSize = "center";
center_txt.text = "This is much longer text";
right_txt.autoSize = "right";
right_txt.text = "This is much longer text";
true_txt.autoSize = true;
true_txt.text = "This is much longer text";
false_txt.autoSize = false;
false_txt.text = "This is much longer text";
};
// register the listener object with the Mouse object
Mouse.addListener(myMouseListener);
TextField.autoSize
877
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers