actionscript 3 - AS3 (flash) Website resizing jittering/lag -


hi new forums , i'm looking current project.

i making website called www.noised.co.uk, feel free take see problem , don't judge me on images etc has not been optimized of yet.

but able see when screen re sizes redraw awfully slow. in as2 used updateafterevent() understand can use under mouse or timer event (and cannot remember which) 3 of not using call re sizer, using:

stage.addeventlistener(event.resize, resizer) 

so question how can make redraw nice, smoother effect?

i'm assuming stage.addeventlistener(event.resize, resizer) working fine , function called on right time.

so looks function how this:

function resizer(e:event):void{  obj.x = calculation of position x;  obj.y = calculation of position y; } 

all need use tween class tweenlite. http://www.greensock.com/tweenlite/

so inside resizer function change content this.

tweenlite.to(obj, 1, {x:your calculation of position x, y:your calculation of position y });

now animation smoother


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -