Xscale (Textfield._Xscale Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example creates three text fields on the Stage. The
the current position of the mouse in relation to the Stage. The
displays the current position of the mouse pointer in relation to the
following ActionScript to a FLA or ActionScript file:
this.createTextField("mouse_txt", this.getNextHighestDepth(), 10, 10, 200,
22);
mouse_txt.border = true;
this.createTextField("textfield_txt", this.getNextHighestDepth(), 220, 10,
200, 22);
textfield_txt.border = true;
this.createTextField("my_txt", this.getNextHighestDepth(), 100, 100, 160,
120);
my_txt.border = true;
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
mouse_txt.text = "MOUSE ... X:" + Math.round(_xmouse) + ",\tY:" +
Math.round(_ymouse);
textfield_txt.text = "TEXTFIELD ... X:" + Math.round(my_txt._xmouse) +
",\tY:" +
Math.round(my_txt._ymouse);
}
Mouse.addListener(mouseListener);
See also
_ymouse (TextField._ymouse property)

_xscale (TextField._xscale property)

public _xscale :
Determines the horizontal scale of the text field as applied from the registration point of the
text field, expressed as a percentage. The default registration point is (0,0).
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example scales the
instances.
scaleDown_btn
this.createTextField("my_txt", 99, 10, 40, 100, 22);
my_txt.autoSize = true;
my_txt.border = true;
my_txt.selectable = false;
Number
instance when you click the
my_txt
instance displays
mouse_txt
instance
textfield_txt
instance. Add the
my_txt
scaleUp_btn
TextField
and
693

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents