dSKY:
I know this is an old post, but I am still having troubles. Where do I put this code?
My file basically looks like this: the _root contains a movieClip with the instance name of “nav”. Inside this clip are 4 buttons. Also inside this “nav” clip are 4 movie clips containing the animation I want to expand and contract.
I am assuming I need to put the code in the movie clip that has the actual animation. But, now we are 3 levels deep: _root, nav, animation1. “this.onEnterFrame” is referring to animation1, which is where I put my script. And “clip” I’m sure refers to btn1. However, btn1 is 1 level up from this animation. I basically changed the code to this, and it didn’t work. What am I doing wrong?
_root.nav.btn1.onRollOver=function(){
this.mcAbout.onEnterFrame=expand; }
_root.nav.btn1.onRollOut=function(){
this.onEnterFrame=contract;
}
function expand(){
this.nexFrame();
if (this._currentframe==this._totalframes){
delete this.onEnterFrame; }
}
function contract(){
this.prevframe();
if (this._currentframe==1){
delete this.onEnterFrame;
}
}
Posted about 1 month ago