• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

Dynamic text field with border and background; too tall

How do I reduce the height of a dynamic text field (with border and background, single-line, device fonts) ?

For the _sans font, size 12 pixels, the field height is a minimum of 19.1 pixels high.

I want to reduce this to 16 pixels WITHOUT sqaushing the text.

Thanks
0
Donelson
Asked:
Donelson
  • 2
  • 2
1 Solution
 
Ramy_atefCommented:
Hi

you have to reduce the font size !

or u make a transparent dynamic text box and put a white rectangle with a black outline under it, it'll give the illusion of a text box wihile it is a text box and a white rectangle under it ;)

Regards,
Ramy
0
 
DonelsonAuthor Commented:
Ramy

Yes, I've been trying to use a transp text with rectangles behind, but can't get the rects to appear via ActionScript...
0
 
Ramy_atefCommented:
verry easy
just make it a movie clip and give it a name (ie. myRectangle)

then u can control it via as.

myRectangle._visible = false // to hide the rectangle
myRectangle._visible = true // to show the rectangle
0
 
DonelsonAuthor Commented:
I found it; the _alpha was 0, but device fonts display anyway, so I was confused.

Thanks. All working now with variable text and nice background, border line and 40% drop shadow.

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now