The effect I'm trying to get is something along the lines of the effect on this site: (click the [+])
I'm using this code
teoppeoppe and teppenede are two black rectangles. Here's how it works:
As you can see, it sometimes works quite well - but sometimes, it it doesn't quite open all the way up or you simply don't get the deceleration effect on the way down.
Help :l
illustration and webdesign
I'm using this code
Code:
_global.abneLukke = function(){
if (teppeoppe._height>=200) {gotoAndStop(goto);}
if (abne=='pres') {
if (teppeoppe._height<=150){h=1600;}
teppenede._height -= (1/teppenede._height)*(600+h);
teppeoppe._height -= (1/teppenede._height)*(600+h);
coverings._alpha -= (0+coverings._alpha)/40;
}
if (teppenede._height<=40){teppenede._alpha=0;teppeoppe._alpha=0;}
if (teppeoppe._height<=41){teppenede._alpha=0;teppeoppe._alpha=0;}
if (abne=='go'){
teppenede._alpha=100;teppeoppe._alpha=100;
if (teppeoppe._height>=150) {h = -200;}
if (stopp==0){
teppenede._height += (teppenede._height+(600+h))/200;
teppeoppe._height += (teppenede._height+(600+h))/200;
if(coverings._alpha<100){coverings._alpha+=1+(coverings._alpha/30);}
if (teppeoppe._height>=265){stopp = 1;}
}
}
};
teoppeoppe and teppenede are two black rectangles. Here's how it works:
As you can see, it sometimes works quite well - but sometimes, it it doesn't quite open all the way up or you simply don't get the deceleration effect on the way down.
Help :l
illustration and webdesign