using Calc for stageheight

  • Hi,

    i use this piece of code to calculate my stageheight while resizing :

    Code
    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

    Edited 2 times, last by zadda (December 8, 2016 at 3:38 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!