jantom
May 10th, 2004, 08:50 PM
I have a button on the main timeline, its instance name is "btButton".
1.
If I put:
"btButton.onPress function {this.attachMovie(..etc..);}"
nothing happens.
I need to refer to "this._parent". Why?
I thought that since the button was on the main timeline, "this" should refer to the main timeline.
Again:
"btButton.onPress function {this._alpha=10;}
changes the alpha property of the button, while
"btButton.onPress function {this._parent._alpha=10;}" changes the alpha property of the _root.
2.
"this._parent.attachMovie(...)" works.
"_parent.attachMovie(...)" doesn't work. Why?
1.
If I put:
"btButton.onPress function {this.attachMovie(..etc..);}"
nothing happens.
I need to refer to "this._parent". Why?
I thought that since the button was on the main timeline, "this" should refer to the main timeline.
Again:
"btButton.onPress function {this._alpha=10;}
changes the alpha property of the button, while
"btButton.onPress function {this._parent._alpha=10;}" changes the alpha property of the _root.
2.
"this._parent.attachMovie(...)" works.
"_parent.attachMovie(...)" doesn't work. Why?