A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: dynamic text

  1. #1

    dynamic text

    how do i send the information from one dynamic text box to another one? ie.. text box one has "blue" in it. when someone presses a button, it put's "blue" in text box 2.

    thanx in advance

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    53
    put a as variable in the "in textbox" (where u write blue)
    put b as variable in the "out textbox"

    on the button put
    on(press){
    b = a;
    }

    that should do the trick

  3. #3
    ok, so what if the text a is a drop down list like windows has, i know i can send the variable like you just told me, but say someone sets the box to "blue" and sends it to b, and then set's the drop down box to "green" and trys to send it, i don't want it to overwrite, i need it to add

    does that explain it? if not let me know

  4. #4
    Member
    Join Date
    Oct 2002
    Posts
    53
    ok - following the example above

    add text box - variable c

    in button:
    on (press) {
    b = a+c;
    }
    or:
    on (press) {
    b = a+"<br>"+c;
    }

  5. #5
    i think your giving it to many steps and making it to much work. it's like this, the drop down has over 100 items on it. it's for an order form for a beer distribution center. the dynamic text box "b" as you put it is where when a person clicks to add an item, it goes there so they can review their order. if a person adds 30 items i don't want to have to make 30 different text boxes for the a+b+c+d kinda stuff. is there no way to make it to where when a product is added, it just add's it to the text box? i know this isn't the action script for it, but this might give you kinda a better idea of what i want:

    on press, add <br>+"currentvalue" to "orderform"
    Last edited by xpsyhatchetmanx; 10-31-2002 at 06:07 PM.

  6. #6
    Member
    Join Date
    Oct 2002
    Posts
    53
    code in the button u klick to add blue:
    on (press) {
    b = "blue";
    }

    b is then "blue" forever or until you change it so and u can display it wherever and whenever u want

  7. #7
    but doing that, wouldn't blue get canceled out when "green" is added?

  8. #8
    Member
    Join Date
    Oct 2002
    Posts
    53
    in the add blue
    on (press) {
    b = b +"<br>"+ "blue";
    }

    in the add green
    on (press) {
    b = b +"<br>"+ "green";
    }

  9. #9
    thanx man, you are a genius.

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