Hi all,
Is it possible to check the stagewidth and stageheight without using the onresize event?
This is the code I use.
<action name="checkReso">
if(device.html5,
if(stagewidth GT 770,
if(stageheight GT 790, set(stagescale,1.2));
);
);
if(device.html5,
if(stageheight LT 750, set(stagescale,0.7));
);
</action>
<events onresize="checkReso();" />
It's now only working when you change orientation. But I need it right from the start.
Does someone know if this is possible?