var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
var point:Object = {x:_xmouse, y:_ymouse};
target_mc.globalToLocal(point);
var rowHeaders = "<b> \t</b><b>_x\t</b><b>_y</b>";
var row_1 = "_root\t"+_xmouse+"\t"+_ymouse;
var row_2 = "target_mc\t"+point.x+"\t"+point.y;
coords_txt.htmlText = "<textformat tabstops='[100, 150]'>";
coords_txt.htmlText += rowHeaders;
coords_txt.htmlText += row_1;
coords_txt.htmlText += row_2;
coords_txt.htmlText += "</textformat>";
};
Mouse.addListener(mouseListener);
See also
MovieClip.getBounds(),
MovieClip.gotoAndPlay()
Availability
Flash Player 5.
Usage
my_mc.gotoAndPlay(frame:Object) : Void
Parameters
A number representing the frame number, or a string representing the label of the frame,
frame
to which the playhead is sent.
Returns
Nothing.
Description
Method; starts playing the SWF file at the specified frame.You can extend the methods and event
handlers of the MovieClip class by creating a subclass.
MovieClip.gotoAndStop()
Availability
Flash Player 5.
Usage
my_mc.gotoAndStop(frame:Object) : Void
Parameters
The frame number to which the playhead is sent.
frame
584
Chapter 7: ActionScript for Flash
MovieClip.localToGlobal()
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?