Hi,
i use this piece of code to calculate my stageheight while resizing :
|
Quellcode
|
1
2
3
4
5
6
7
|
if(device.desktop, sub(destheight,stageheight, 127),);
div(divisor,stageheight,100);
div(destheight,divisor);
roundval(destheight, 1);
txtadd(destheight,get(destheight),'%');
tween(area.height, get(destheight), 0.1);
|
i want use it with calc but it confuse me,
how do you translate properly the code ??
Thanks
z