Okay, I have a frame with this code:
So, when the frame is entered, teppenede and teppeoppe are resized down and coverings is made transparent. This works only if I don't have the "if (abne='go'){ et.c." bit in it, but when I put it in, it won't work. Coverings becomes transparent, but teppeoppe and teppenede just go crazy. What's happening here?
(I need that bit for my buttons, they have this code:
)
illustration and webdesign
Code:
h = 0;
abne = 'pres';
forHoide = 200;
eftorHoide = 700;
this.onEnterFrame = function() {
if (teppeoppe._height>=260) {gotoAndPlay(maal);}
if (abne='pres') {
if (teppeoppe._height<=150){h=eftorHoide;}
teppenede._height -= (1/teppenede._height)*(forHoide+h);
teppeoppe._height -= (1/teppeoppe._height)*(forHoide+h);
coverings._alpha -= (0+coverings._alpha)/40;
if (teppeoppe._height>=0) {stopp = 1;}
}
if (abne='go'){
if (teppeoppe._height>=150) {h = eftorHoide;}
teppenede._height += teppenede._height+(forHoide+h);
teppeoppe._height += teppeoppe._height+(forHoide+h);
if (teppeoppe._height>=265){stopp = 1;}
}
};
stop();
So, when the frame is entered, teppenede and teppeoppe are resized down and coverings is made transparent. This works only if I don't have the "if (abne='go'){ et.c." bit in it, but when I put it in, it won't work. Coverings becomes transparent, but teppeoppe and teppenede just go crazy. What's happening here?
(I need that bit for my buttons, they have this code:
Code:
on(release){
abne='go';
maal='contact';
}
illustration and webdesign