stretching dynamic text fields

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default stretching dynamic text fields

    Hi everyone,

    How do I make a text field dynamically fit its contents?

    I have a movie clip instance, called "macromedia", which holds a dynamic
    text area, called "myText".
    The frame script in the mc says:
    myText = this._name;

    so when the movie is published, myText reads "macromedia".

    The problem is that I want the text area to fit the text, not just be one
    length and either crop the text if it's too much or be longer than the text
    if it's too short.

    The purpose is to duplicate the mc based on the number of items in an array,
    and fill the dynamic text area "myText" with contents of the array. Then
    each mc should be only as long as the sentence it contains, so it can scroll
    to the end and stop within a masked area. Each sentence is between 50-100
    words, and will be supplied by the client the day before the CDs get duped,
    so I'd like to make it as dynamic as possible.

    TIA

    Jeremy


    J-Dogg Guest

  2. Similar Questions and Discussions

    1. Preview and dynamic text fields.
      Is there anything that I can do, short of phoning Steve, that will get Preview (v3.0.8) to stop balking at text fields on interactive pdf files?...
    2. Masking and Dynamic Text Fields
      I was wondering, since apparently that Dynamic Text Fields are not rendered while under a Layer Mask, if there was a work around or if macromedia...
    3. Could dynamic text fields be masked
      I tried masking dynamic text fields but was not able to. Could they be masked. Thanks, p4p
    4. Dynamic text fields. Continuing text over columns
      Hi I'm doing a mock up news paper article over 4 columns in flash mx and the text loads in dynamically. I have 4 dynamic text boxes sitting side...
    5. Got it: stretching dynamic text fields
      Someone answered in another news group: Using instance names for text areas in MX, you can use the property "autoSize". "J-Dogg"...
  3. #2

    Default stretching dynamic text fields

    Hi everyone,

    How do I make a text field dynamically fit its contents?

    I have a movie clip instance, called "macromedia", which holds a dynamic
    text area, called "myText".
    The frame script in the mc says:
    myText = this._name;

    so when the movie is published, myText reads "macromedia".

    The problem is that I want the text area to fit the text, not just be one
    length and either crop the text if it's too much or be longer than the text
    if it's too short.

    The purpose is to duplicate the mc based on the number of items in an array,
    and fill the dynamic text area "myText" with contents of the array. Then
    each mc should be only as long as the sentence it contains, so it can scroll
    to the end and stop within a masked area. Each sentence is between 50-100
    words, and will be supplied by the client the day before the CDs get duped,
    so I'd like to make it as dynamic as possible.

    TIA

    Jeremy


    J-Dogg Guest

  4. #3

    Default Got it: stretching dynamic text fields

    Someone answered in another news group:
    Using instance names for text areas in MX, you can use the property
    "autoSize".

    "J-Dogg" <j-dogg@quitspammingme.net> wrote in message
    news:vZqsb.18438$jA6.13867@bignews6.bellsouth.net. ..
    > Hi everyone,
    >
    > How do I make a text field dynamically fit its contents?
    >
    > I have a movie clip instance, called "macromedia", which holds a dynamic
    > text area, called "myText".
    > The frame script in the mc says:
    > myText = this._name;
    >
    > so when the movie is published, myText reads "macromedia".
    >
    > The problem is that I want the text area to fit the text, not just be one
    > length and either crop the text if it's too much or be longer than the
    text
    > if it's too short.
    >
    > The purpose is to duplicate the mc based on the number of items in an
    array,
    > and fill the dynamic text area "myText" with contents of the array. Then
    > each mc should be only as long as the sentence it contains, so it can
    scroll
    > to the end and stop within a masked area. Each sentence is between 50-100
    > words, and will be supplied by the client the day before the CDs get
    duped,
    > so I'd like to make it as dynamic as possible.
    >
    > TIA
    >
    > Jeremy
    >
    >

    J-Dogg Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139