kolnedra . com | Tags | Posts tagged with 'textfield'

Posts tagged with 'textfield'

Creating multiple SWF fonts through a custom extension panel

Date: 11 March 2010

Step 1

Installing the fonts Make sure you have installed all the fonts you want to use.
For Windows: Copy / paste them into C:\WINDOWS\Fonts\
For OSX: Double click the desired font(s) and click on the "Install font" button

Step 2

Install the ExportFonts extension Download the extension and install it by double clicking

Step 3

Creating a new flash file Create a new Flash ActionScript 3.0 CS4 file (CTRL + N) and save it.

Step 4

Launch Go to Window > Other panels > ExportFonts.
You'll see a small multiline textfield with a few fonts seperated by a comma.
Fill in the installed fonts and press "GO!". A map swf_fonts is created where the exported SWF font files are exported to.

In the following steps I'll explain how you can use those fonts.


Read more ...

TextField autoSize drama

Date: 22 February 2010

About 50% of all my flash projects I used dynamic textfields that resizes according to it's content. And ofcourse my blog would not be here if textfields were unable to auto resize. Unfortunately the autoSize property is not working well in some cases. First of all take a small peak at the autoSize documentation here.
The problem most of the time occurs on multiline textfields.

Some glitches of the autoSize property

- TextField height is not accurate.
- TextField allows vertical scrolling.
- No trimming

So I started playing around with the textHeight, mouseWheel and scroll event and left the autoSize as it is and I came up some interesting stuff.


Read more ...