A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Load string from dynamic text field as variable

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    12

    Load string from dynamic text field as variable

    I am trying to grab a string that is loaded into my dynamic text field and use it as a variable.

    The text field is populated when another button is pressed first which says input_txt.text = "myInput"

    ...I gave my dynamic text field the instance name input_txt

    So I wrote out (on a separate button):

    on (release) {
    var input:String = input_txt;
    trace(input);
    }

    I get "undefined" as my output

    Any suggestion? Thanks!

  2. #2
    Junior Member
    Join Date
    Jul 2008
    Posts
    12
    As soon as I posted this I realized I didn't append ".text" to "input_txt"

    nevermind...

Tags for this Thread

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