FirstServed Tech Blog - FirstServed and the Art of Server Tuning

Archive for the ‘Adobe Flex’ Category

Why do flex skins sometimes look blurry?

Friday, October 10th, 2008

The left panel is like it should be, the right panel looks awfull. All lines are blurry, shadows are buggy, etc.

This is caused by the panel having a x or y property a floating point value.

So when working with randoms, dragging operations, or any other calculations, always remember to round your values. This keeps your skins snappy :)

//panel.x = Math.random() * 10;
panel.x = Math.floor(Math.random()*10);

Great success!