Hi all, I’m having the weirdest problem.
I am dynamically attaching a movieclip (that instantiates a class) with attachMovie. In the movieClip itself I have a script that tweens the size of the mc on rollover and rollout, and what I want to do is have it also swap the depth of the movieclip.
this.onRollOver = function() {
this.swapDepths(9000);
var Xsize:Tween = new Tween(this, "_width", Elastic.easeOut, this._width, 60, .5, true);
var Ysize:Tween = new Tween(this, "_height", Elastic.easeOut, this._height, 60, .5, true);
}
For some reason, the tweening fires off fine, but the swapDepths never happens. What’s weirder is that when I try to trace a getDepth on the movieClip, it comes back undefined.
I have no idea what’s going on and would appreciate any help that you guys can offer.
Thanks in advance!