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

  1. #1

    Default dynamic text boxs

    I am using Flash MX but I would like my dynamic menu to work in the Flash 5
    Player, unfortunately Flash 5 doesn't support the use of instance names for
    dynamic text boxes. Is there an easy way around this within the framework of
    the code I am using below.

    while (amount>=0)
    {
    duplicateMovieClip (_root.navbutton_mc, "button"+i, i);
    this["button"+i].varTitle = myVars["url" + i]
    i++;
    amount--;
    }




    Chris Kennedy Guest

  2. Similar Questions and Discussions

    1. load external text to dynamic text field in levels
      Dear Sir I found the Tech Noe Index #16238 is useful in creating dynamically loaded text from external text file. However, the method mentioned...
    2. Dynamic text box within dynamic movie clip
      I'm having a similar problem. On mine I noticed that although the text doesn't show and the border doesn't show, the cursor changes appropriately...
    3. Creating Boxs with Borders
      What is the easiest/simplest way to draw a box with a border in Photoshop Elements? Like there would be a white box with a black border, which I...
    4. Dynamic text in smooth scrolling text field - help
      here's links to the files. http://www.anicespot.com/test/ http://www.anicespot.com/test/easing_textScroller-01.html...
    5. Dynamic Text Loaded from Text files -> Flash 5 <-
      I was wondering how I can dynamically load text into a text box from a text file using Flash 5. I've seen plenty infos how to do it with Flash MX but...
  3. #2

    Default Re: dynamic text boxs

    You'll have to code your movie using scripts that work in Flash 5. That
    means you'll have to assign your text fields a variable name and then set
    that.

    --
    Shane Elliott
    [url]www.timberfish.com[/url]


    "Chris Kennedy" <chrisk@cybase.co.uk> wrote in message
    news:1058987874.316923@azores.network-i.net...
    > I am using Flash MX but I would like my dynamic menu to work in the Flash
    5
    > Player, unfortunately Flash 5 doesn't support the use of instance names
    for
    > dynamic text boxes. Is there an easy way around this within the framework
    of
    > the code I am using below.
    >
    > while (amount>=0)
    > {
    > duplicateMovieClip (_root.navbutton_mc, "button"+i, i);
    > this["button"+i].varTitle = myVars["url" + i]
    > i++;
    > amount--;
    > }
    >
    >
    >
    >

    S. Elliott \(timberfish.com\) Guest

  4. #3

    Default Re: dynamic text boxs

    Hi Chris,

    It seems to me that you are targeting the Var: of the dynamic text field not
    its instance name?
    Otherwise it would be: this["button"+i].varTitle.text = myVars["url" + i]

    The code you supplied should work with Flash 5, but if not - the lack of
    support for the instance name of a dynamic text field isn't the reason. To
    test this, open the movie clip and remove the instance name (not the Var)
    from the text field - you will find that it all still works in Flash 6, and
    doesn't alert you to an unsupported feature when you publish it for Flash 5
    (that doesn't mean it will actually work).

    Perhaps its the this[]: this["button"+i].varTitle = myVars["url" + i]; Maybe
    you could try eval() instead: eval("button"+i).varTitle = myVars["url" + i]

    Anyway, I'm reluctant to post this without a solution, but it might help put
    you on the right track.

    Best regards,

    Max Davy

    --

    Oz Impact Multimedia
    Innovate, Immerse, Inspire

    [url]www.ozimpact.com[/url]

    "Chris Kennedy" <chrisk@cybase.co.uk> wrote in message
    news:1058987874.316923@azores.network-i.net...
    > I am using Flash MX but I would like my dynamic menu to work in the Flash
    5
    > Player, unfortunately Flash 5 doesn't support the use of instance names
    for
    > dynamic text boxes. Is there an easy way around this within the framework
    of
    > the code I am using below.
    >
    > while (amount>=0)
    > {
    > duplicateMovieClip (_root.navbutton_mc, "button"+i, i);
    > this["button"+i].varTitle = myVars["url" + i]
    > i++;
    > amount--;
    > }
    >
    >
    >
    >

    Max Davy 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