Results 1 to 3 of 3

Thread: Use for TextFieldAutoSize

  1. #1
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default Use for TextFieldAutoSize

    The TextFieldAutoSize class is an enumeration of constant values used in setting the autoSize property of the TextField class.
    What?

    Initailly I thought it would create a textbox that allows the user to resize the textbox -it apparently doesn't.

    I figure out how to scale one but it enlarges the type too.

    so that's the second part of the question.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    LOL.

    The TextFieldAutoSize class allows for textfields to be resized dynamically. So, if you're sending dynamic data into a text field, you don't have to know the size of it before hand.

    As far as resizing it, it's just a lot of math. And you really cant only resize the container, you just have to do it in a way that the aspect ratio remains the same. So, it's not a simple task.

    You should look at Jack Doyle's Transform Manager. The current version is in AS2 but he plans to release an AS3 version sometime this month. Also, check out his tweening classes, if you're interested.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    evan (07-18-2008)

  4. #3
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default

    That is exactly what I am trying to figure out. adding to that, I want to do something like that while addding and subtracting items to that array.

    Looks like I have my work cut out.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •