Xscale (Button._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 displays the x coordinate of the mouse position for the Stage and a
button called
my_btn
of the Timeline:
this.createTextField("mouse_txt", 999, 5, 5, 150, 40);
mouse_txt.html = true;
mouse_txt.wordWrap = true;
mouse_txt.border = true;
mouse_txt.autoSize = true;
mouse_txt.selectable = false;
//
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
var table_str:String = "<textformat tabstops='[50,100]'>";
table_str += "<b>Stage</b>\t"+"x:"+_xmouse+"\t"+"y:"+_ymouse+newline;
table_str += "<b>Button</
b>\t"+"x:"+my_btn._xmouse+"\t"+"y:"+my_btn._ymouse+newline;
table_str += "</textformat>";
mouse_txt.htmlText = table_str;
};
Mouse.addListener(mouseListener);
See also
_ymouse (Button._ymouse property)

_xscale (Button._xscale property)

public _xscale :
The horizontal scale of the button as applied from the registration point of the button,
expressed as a percentage. The default registration point is (0,0).
Scaling the local coordinate system affects the
in pixels. For example, if the parent movie clip is scaled to 50%, setting the
an object in the button by half the number of pixels that it would if the SWF file were at
100%.
Availability: ActionScript 1.0; Flash Lite 2.0
that is placed on the Stage. Enter the following ActionScript in Frame 1
Number
and
property settings, which are defined
_x
_y
property moves
_x
Button
295

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?

Table of Contents