mouseMove()

 < Day Day Up > 

Availability

Flash MX 2004.

Usage

function mouseMove( [ pt ] ) {   // statements }

Parameters

pt A point that specifies the current location of the mouse. It is passed to the function whenever the mouse moves, which tracks the mouse location. If the Stage is in edit or edit-in-place mode, the point coordinates are relative to the object being edited. Otherwise, the point coordinates are relative to the Stage. This parameter is optional.

Returns

Nothing.

Description

Function; called whenever the extensible tool is active and the mouse moves over a specified point on the Stage. The mouse button can be down or up.

Example

The following examples show how this function can be used. The first example displays a message in the Output panel that the mouse is being moved. The second example displays the x and y coordinates of the mouse's location as it moves.

function mouseMove() {   fl.trace("moving"); } function mouseMove(pt) {   fl.trace("x = "+ pt.x + " :: y = " + pt.y); }

     < Day Day Up > 


    Developing Extensions for Macromedia Flash 8
    Developing Extensions for Macromedia Flash 8
    ISBN: 032139416X
    EAN: 2147483647
    Year: 2005
    Pages: 81

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net