Hi guys,
Just a quick question re referencing problem. I couldn’t work out why my entire movie was disappearing and i’ve found the source of the problem in this snippet (below). It seems this._visible is referencing root and not the soundControl_mc as expected. I know var soundControl is simply storing a reference to soundControl_mc created earlier, but surely a ‘this’ reference should point to soundControl_mc??? :huh:
Can anyone elaborate on the problem I’m having here? I can get to work taking away ‘this’ and using ‘soundControl’, but it just doesnt make sense to me…
soundControl = this.attachMovie("soundControlClip", "soundControl_mc", this.getNextDepth());
soundControl.onPress = function() {
track_sound.stop();
this.tween("_alpha", 0, 0.500000, "easeOutCubic", 0, function () {
this._visible = 0;
});
};
Thanks!