ryanmills
06-24-2005, 07:08 PM
Sorry this is probaly an easy one. I tried searching for it. But I dont have a clue what the function would be called.
I simply have a set of 2 frames to build and distroy content. It works by just going back one frame to get the new button data. My question is how would I disable onRollOver, onRollOut ect, that was set before?
While the code is not complete I hope it can give an idea what im doing. Each time it goes thru the switch it gives it new button data. I just need to make sure to clear the old. I thought I read it in one of books but I cant find it.
Any Ideas?
switch (page){
case 2:
trace("Page - Prod");
bg_1_mc.tween("_alpha",100,3,"linear");
prod_mc.tween("_alpha",100,3,"linear",2);
prod_text.tween("_alpha",90,3,"linear",2);
//productivity_mc.tween("_alpha",90,3,"linear",2);
new_mc.tween("_alpha",90,3,"linear",2);
worldclass2_mc.tween("_alpha",90,3,"linear",2);
ex_mc.tween("_alpha",90,3,"linear",2);
arrow_new.tween("_alpha",90,3,"linear",2);
break;
default:
productivity_mc.onRollOver = function(){
productivity_mc._alpha = 75;
}
productivity_mc.onRollOut = function(){
productivity_mc._alpha = 100;
}
productivity_mc.onRelease = function(){
arrow2_mc.tween("_alpha",0,3,"linear",0,onEnd1);
expec_mc.tween("_alpha",0,3,"linear");
exce_mc.tween("_alpha",0,3,"linear");
productivity_mc.tween("_alpha",0,3,"linear");
nework_mc.tween("_alpha",0,3,"linear");
worldclass_mc.tween("_alpha",0,3,"linear");
lady_mc.tween("_alpha",0,3,"linear");
bg1_mc.tween("_alpha",0,3,"linear");
arrow3.tween("_alpha",0,3,"linear");
page= 2;
_root.gotoAndPlay(261);
}
nework_mc.onRollOver = function(){
nework_mc._alpha = 75;
}
nework_mc.onRollOut = function(){
nework_mc._alpha = 100;
}
nework_mc.onRelease = function(){
_root.gotoAndPlay(272);
}
worldclass_mc.onRollOver = function(){
worldclass_mc.texttext._alpha = 15;
}
worldclass_mc.onRollOut = function(){
worldclass_mc.texttext._alpha = 30;
}
worldclass_mc.onRelease = function(){
_root.gotoAndPlay(282);
}
break;
I simply have a set of 2 frames to build and distroy content. It works by just going back one frame to get the new button data. My question is how would I disable onRollOver, onRollOut ect, that was set before?
While the code is not complete I hope it can give an idea what im doing. Each time it goes thru the switch it gives it new button data. I just need to make sure to clear the old. I thought I read it in one of books but I cant find it.
Any Ideas?
switch (page){
case 2:
trace("Page - Prod");
bg_1_mc.tween("_alpha",100,3,"linear");
prod_mc.tween("_alpha",100,3,"linear",2);
prod_text.tween("_alpha",90,3,"linear",2);
//productivity_mc.tween("_alpha",90,3,"linear",2);
new_mc.tween("_alpha",90,3,"linear",2);
worldclass2_mc.tween("_alpha",90,3,"linear",2);
ex_mc.tween("_alpha",90,3,"linear",2);
arrow_new.tween("_alpha",90,3,"linear",2);
break;
default:
productivity_mc.onRollOver = function(){
productivity_mc._alpha = 75;
}
productivity_mc.onRollOut = function(){
productivity_mc._alpha = 100;
}
productivity_mc.onRelease = function(){
arrow2_mc.tween("_alpha",0,3,"linear",0,onEnd1);
expec_mc.tween("_alpha",0,3,"linear");
exce_mc.tween("_alpha",0,3,"linear");
productivity_mc.tween("_alpha",0,3,"linear");
nework_mc.tween("_alpha",0,3,"linear");
worldclass_mc.tween("_alpha",0,3,"linear");
lady_mc.tween("_alpha",0,3,"linear");
bg1_mc.tween("_alpha",0,3,"linear");
arrow3.tween("_alpha",0,3,"linear");
page= 2;
_root.gotoAndPlay(261);
}
nework_mc.onRollOver = function(){
nework_mc._alpha = 75;
}
nework_mc.onRollOut = function(){
nework_mc._alpha = 100;
}
nework_mc.onRelease = function(){
_root.gotoAndPlay(272);
}
worldclass_mc.onRollOver = function(){
worldclass_mc.texttext._alpha = 15;
}
worldclass_mc.onRollOut = function(){
worldclass_mc.texttext._alpha = 30;
}
worldclass_mc.onRelease = function(){
_root.gotoAndPlay(282);
}
break;