I found out the getBounds()-function gives not exactly the right rectangle with a TextField. It always matches the border bounds, even if the borders are invisible. So i’ve created a more accurate function using getColorBoundsRect().
Found out something useful, which I’d like to share with you. It’s about calculating the width of menu-items perfectly.
Imaging you are creating a liquid website with a menu. If you want all items to have the same width, you could set the width of each item to totalMenuWidth / items.length. In most cases this will work out. But what is your menu is very small or the items doesn’t fit in that fixed width because the text is too long?
I like to generate art and objects with Flash/actionscript. Mostly I use a bitmapdata for that and export this as a PNG-24. This works perfect in most cases. But sometimes I wish there was a simple way to export my art to a scalable vector graphic. This would save a lot of data, and I’ll be able to create unlimited large and sharp prints.
I started searching and found some nice-to-know options.
AS3 puzzle block game. Just for fun I created this puzzle-game. It is not very innovative, but it’s cool (and hard) to explore how to build this kind of game. Don’t know the exact name for this game, so I called it block.game.