Dynamic text field with border and background; too tall

Posted on 2006-06-01
Last Modified: 2010-04-03
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.

Question by:Donelson
    LVL 7

    Accepted Solution


    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 ;)


    Author Comment


    Yes, I've been trying to use a transp text with rectangles behind, but can't get the rects to appear via ActionScript...
    LVL 7

    Expert Comment

    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

    Author Comment

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now