Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8735457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:03:45+00:00 2026-06-13T10:03:45+00:00

recently i was thinking making a component which like html’s table tag. html table

  • 0

recently i was thinking making a component which like html’s table tag.

html table can auto fit the cell’s width with the text or content in it.and the certain column’s width is decided by the widest cell on that column.

<table>
    <tr>
        <td>this could be very long.</td>
    </tr>
    <tr>
        <td>short</td>
    </tr>
</table>

but in as3 this is a problem,i don’t know the string’s actual size unless i set it to a textfield. i don’t think it would be a good strategy to use the actual textfield instance try and resize, so let me know if you have a better way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:03:46+00:00Added an answer on June 13, 2026 at 10:03 am

    First of all, you need to enable auto-sizing:

    textField.autoSize = TextFieldAutoSize.LEFT;
    

    Then, if you want to read the resulting text size use can use:

    var width:Number = textField.textWidth;
    var height:Number = textField.textHeight;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been thinking recently on using the Object Oriented design in the sorting algorithm.
So recently i was thinking about strcpy and back to K&R where they show
Recently I was asked to develop an app, which basically is going to use
Recently, I was writing a class in which I discovered that I could reduce
I am recently thinking about writing self-modifying programs , I think it may be
I am thinking recently on how floating point math works on computers and is
I've been spending some thinking time recently on how to best handle resource failure
Recently I've been thinking about securing some of my code. I'm curious how one
So, recently, after accruing quite a few js and css files, I began thinking
I was recently thinking of the following BNF A -> x | yA |

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.