A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Resize MC based on loaded dynamic text?

  1. #1
    Chemist
    Join Date
    Oct 2002
    Location
    San Francisco
    Posts
    204

    Resize MC based on loaded dynamic text?

    Hey All,
    I am looking to resize a tab movieclip that I have behind a dynamic text field. I would like to rezize the tab movieclip based on the character amount or width. Can someone please help me out or point me in the right direction.

    Thanks in advance!

    /zach

  2. #2
    I'm not sure if you're trying to resize the tab movieclip based on the text in the tab, or the text it's behind, but either way, with the text you want to measure, set autoSize to true, then you can check its _width and _height, do whatever calculations you need to do, and apply it to the tab.

  3. #3
    Chemist
    Join Date
    Oct 2002
    Location
    San Francisco
    Posts
    204
    I am trying to resize the tab based on the dynamic text size... How would I do this???

    Thanks so much in advance!

    /zach

  4. #4
    Chemist
    Join Date
    Oct 2002
    Location
    San Francisco
    Posts
    204
    Tuesday morning coffee break bump... Any ideas?

    Thanks in advance!

  5. #5
    I can't be any more specific than that unless you're more specific.

  6. #6
    Chemist
    Join Date
    Oct 2002
    Location
    San Francisco
    Posts
    204
    I figured it out. Thanks for your help.

    This is what I did...

    myMC.myTabBG._width = myMC.myDynamicTxt._width

    Thanks,
    Zach

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center