Archive for January, 2010
Smarter i18n platform
I am, these days, sporadically, working at translating the UI of the MuseScore music notation software into Romanian.
The software itself is opensource, written in C++ against the QT platform, and translation, up to a few days ago, was made via the QTLinguist application.
The QTLinguist has a rather priceless feature, called suggestions (or the like), which [...]…convert a decimal
Numberto a hexadecimalString?Don’t go about writing your own decimal to hexadecimal converter. In AS3, the Number.toString(radix : Number) method is all that you need:
var myDeci : Number = 16711680;
var myHexa : String = myDeci.toString (16); // myHexa now holds "ff0000"
Note that you may still need to left pad the resulting value, if you’re operating with color triplets [...]
…scroll an element into view in Flex?
This worked for me:
var myButtonBounds : Rectangle = myButton.getBounds (this);
verticalScrollPosition = myButtonBounds.bottom;
In the above, myButton was the Flex component I needed to bring into view by scrolling up the content of its container.
