Posts about ActionScript

Liquid menu: Better proportions with Math.sqrt

ActionScript, Code snippets

Square rootFound 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?

Read more

Actionscript 3 to vector graphic

ActionScript

Actionscript to vector graphicI 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.

Read more

Game – block.game

ActionScript, Games

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.

Read more to find out how I created the game.

Read more