User Guide
Manuals
Brands
Macromedia Manuals
Other
FLASH MX 2004-USING ACTIONSCRIPT IN FLASH
171
172
173
174
175
176
177
178
179
180
Scope of the this keyword
177
Within an
on()
handler attached to a button
,
this
refers to the T
imeline that contains the
button, as shown in the following code:
// Attached to button on main Timeline
on(press) {
trace(this); // displays '_level0'
}
1
...
...
175
176
177
178
179
...
...
344