HomeAbout

AS3 Scale9 Bitmap

AS3 Scale9 Bitmap is class that lets you create scale9 sprites with bitmap data fill – originally this was not possible in Flash 9. The class creates a “fake” scale 9 sprite containing 9 shapes that scale according to user-defined scaling matrix. Extremely useful for quick user interface work (creating buttons, scalable UI elements etc.)

http://www.uza.lt/codex/as3-scale9-bitmap/

2 Comments »

  1. I wonder who was the first to develop that class:
    http://www.bytearray.org/?p=118
    O_O

    Comment by Jloa — December 17, 2009 @ 7:26 am

  2. To answer Jloa’s question:

    This class was created after bytearray’s implementation, and for a reason that bytearray’s implementation did not serve my needs.

    From tech perspective the class is completely different – bytearray uses matrixes to draw data back into a single bitmap, while my implementation uses 9 separate container sprites and redraws only the one’s that are needed. Both have cons and pros, however my class also provides ways to create basic interaction elements (buttons, etc) thus giving you a slight edge.

    Comment by Paulius Uza — December 17, 2009 @ 1:45 pm

RSS feed for comments on this post. | TrackBack URI
You can also bookmark this on del.icio.us or check the cosmos

Leave a comment





XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .