BitmapText class

A new section is up on the projects page where I put classes I’ve written that I think might be useful to others. People seemed to like my post on bitmap text so I released the class I use to do the boring work for me.

Usage:

?View Code ACTIONSCRIPT3
// Optional format
var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.size = 10;
var bmt:BitmapText = new BitmapText(300, 500, true, format, 12, 100); // only width and height are required
bmt.addText("This is html text, which can't be mixed with regular text.", true); // set last param to false for regular text
this.addChild(bmt.render());

More instructions/explanations are in the class itself.

Tags: , ,

  • Twitter
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Google Bookmarks
  • FriendFeed

Leave a Reply