Flash 8 - bitmapFont class
October 4th, 2005 at 04:10pm Administrator
If you're new here, you may want to subscribe to my RSS feed. If you like my site, consider linking back. I prefer text "Free Flash Tutorials" to http://www.franto.com
Thanks for visiting my site! If you need anything just contacting through Contact page
Here is class for bitmapFont I’ve created for my project.
There is just numbers inside, but you can extend font to your need.
Please let me know if class is useful for you.
|
[as]import flash.display.*;
import flash.geom.*; import com.franto.flash8.*; class bitmapFont { function bitmapFont() {} public static function drawText(bmp:BitmapData, color:Number, text:String, position:Point,zoom:Number) { var x = position.x; var __font:Object = new Object(); var bits = 3; var len = text.length; for (var j=0;j
|
|
And here is example how to write 0123456789 with zoom=3: |
|
[as]bitmapFont.drawText(bmp, 0xffff0000, “0123456789″, new Point(10,10), 3);[/as]
|
|
Download class |
Enjoy.
»Related posts:
- Flash 8 - bitmapFont class, part 2.
- Convert DisplayObject to Class
- Flash 8 IDE problem
- Javascript Tween Class
- FlexTips: Tween in AS3.0 project
- Waiting for Flashop
- Tutorial on Delegate class by Patrick Mineault
- Flash 8 - Key class bug or feature?
- Custom header in DataGrid
- Flash Player 9.0.124 is NOT vulnerable again
- From 3D Max to AS3.0
- Macromedia Flash MX 2004 Bible
- Flex 3 beta 2 Autocompletation time
- Krugle.com with ActionScript
- FlexTips - Stop displaying Focus
- OrganicBox AS2.0 class
- Essential ActionScript 2.0
- Custom header in DataGrid - part 2
- I was right. ActionScript 3.0 is here
- Give us movies on-the-fly!







