Sie sind nicht angemeldet.

1

Donnerstag, 8. Dezember 2016, 15:21

using Calc for stageheight

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

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »zadda« (8. Dezember 2016, 15:38)