activate()

 < Day Day Up > 

Availability

Flash MX 2004.

Usage

function activate() {   // statements }

Parameters

None.

Returns

Nothing.

Description

Function; called when the extensible tool becomes active (that is, when the tool is selected in the Tools panel). Use this function to perform any initialization tasks the tool requires.

Example

The following example sets the value of tools.activeTool when the extensible tool is selected in the Tools panel:

function activate() {   var theTool = fl.tools.activeTool }

See also

tools.activeTool

     < 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