A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: noob on dynamic textboxes

  1. #1
    The next Squaresoft
    Join Date
    Sep 2004
    Location
    Zanarkand
    Posts
    215

    noob on dynamic textboxes

    yeah!!! hello!

    after....weeks of wondering how dynamic boxes work,
    i finally had the opprtunity of making my lazy fingers
    type this in:

    how the heck do you make dynamic textboxes work!?

    i mean a dynamic textbox can show the value of
    a certain variable...
    (like say, damage = 9999, a dyanamic text would appear 9999)

    but i cant do it!

    heheh, how is it done?

    thnx a bunch!!
    "Are those gummy worms? Can I have some?"

    "Nevermind, I just saw one move by itself..."

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    The easiest way to do it is to place the dynamic textbox in the same timeline as your variable. then in the properties inspector for the textbox fill in the var field with the name of the variable.

    the slightly better way to do it is to give the dynamic textbox an instance name and then each time you change the value of damage display it in the textfield using,

    instanceNameOfYourTextfield.text = damage;

  3. #3
    The next Squaresoft
    Join Date
    Sep 2004
    Location
    Zanarkand
    Posts
    215
    haha tnx, all i had to do was place it in the
    same as my variable!

    lol, tnx a bunch!
    "Are those gummy worms? Can I have some?"

    "Nevermind, I just saw one move by itself..."

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