View comments | RSS feed

_name (Button._name property)

public _name : String

Instance name of the button specified by my_btn.

Availability: ActionScript 1.0; Flash Player 6

Example

The following example traces all instance names of any Button instances within the current Timeline of a SWF file.

for (i in this) {
    if (this[i] instanceof Button) {
    trace(this[i]._name);
    }
}

Flash CS3


Comments


Chiefmojo said on Jul 3, 2008 at 2:39 PM :
Ok, but how do you find the name of a specific button? Say I want to trace the name out from a button that was clicked, seems like something like this should work:

on (rollPress) {
trace(this._name);
}

but it doesn't!! Surprise! Anyone have any suggestions?

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001447.html