I have a code like this on the root.
MovieClip.prototype.scalebig = function(obj) {
_root[obj]._x = _root[obj].bigx;
_root[obj]._y = _root[obj].bigy;
_root[obj].onEnterFrame = function() {
diff = this.bigscale-_root[obj]._xscale;
_root[obj]._xscale = _root[obj]._yscale += diff/this.speed*0.3;
this.renkli._alpha +=10;
if(this.renkli._alpha >= 100) {
this.renkli._alpha = 100;
}
//trace(this.getDepth());
if (Math.abs(diff)<0.2) {
delete this.onEnterFrame;
}
};
};
When I call this form a first level object (I mean an object on the _root level)
it just works fine. But when I call this from an naother level it does not work.
Ex: _root.menu.
why