Hy guys, this should be something simple to solve, but i am not sure what I am missing
I am using this code to attach a mc into another mc in runtime
on (release) {
_root.holder.attachMovie("q3", "q3_mc", this.getNextHighestDepth());
_root.container._alpha = 0;
_root.container._width = _root.container.holder.p5_mc._width;
_root.container.close._x = _root.container._width;
_root.fade();
}
this is the fade function
function fade() {
_root.container.onEnterFrame = function() {
this._alpha += 7;
if (this._alpha>90) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
It does what it is supposed, but not always, sometimes the holder mc does not “stretchs”
to the size of the mc being loaded, causing distortions, this happens pretty ramdomly.
Anyone could help me out?
thanks