PDA

View Full Version : Quick dynamic text question...



coldementia
September 6th, 2008, 01:16 PM
In part of my game I have a dynamic text field that changes its text as you roll over different buttons. When you roll off the buttons the text returns to its original state. That all works fine, but the problem is I'm trying to use a font I downloaded that is not a basic system font. It's a pixel font that I'm using because it looks much neater. When I publish my project the game uses some other font, I'm guessing plain old Times, at the pixel font size. Is there any way to load the font I'm using into the actual flash file so that other people will be able to see it as I intend? Or do you pretty much have to use system fonts if you're using dynamic text fields?

I tried using static text and using a controlled movie clip to change the text as needed, but the problem with that is it makes the pixel font look like garbage.

coldementia
September 6th, 2008, 01:19 PM
Just thought of something. I could type the text I need out in paint, save the pieces as bitmaps and import those into flash. But it seems like there's got to be a better way.

peartart
September 6th, 2008, 11:47 PM
You can embed the font. In the properties field of your dynamic text box, there is an "embed" button. Click on it and choose your characters or embed the whole alphabet. This should work just fine...

SparK_BR
September 7th, 2008, 12:46 AM
about the paint thing...
if you press Ctrl+B twice with a text selected, it becomes a fill
(nothing relevant, just for your knowledge :))

coldementia
September 9th, 2008, 06:59 PM
Yeah, I know all about the break function. That would have made the text shape vector based and therefore screw with the clarity. I did use the embed function in the properties panel but to no avail, so I've decided to just use a device font that I know should work fine on most computers.