-
10th Oct, 2008No Comments
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!
Peter
-
3rd Oct, 2008No Comments
When selecting text in the Flex Text component, sometimes the text is scrolled up one line, and thus hiding the first line.
A solution is to set the selectable property to false, but then links don’t work anymore, and sometimes you want to let the user select text.
There is a nice solution on viconflex.blogspot.com , but it seems odd that you can select text on several components at the same time, so I added some code that handles this.
Just watch for the focusout event, and manually deselect the text. that’s it

Watch it in action: (Source view is enabled)
Now the visitor can select text, follow links, without the scroll annoyance!
Cheers,
Peter







