Skip navigation
Currently Being Moderated

(help) how to extend textbox from stage to oop method

Apr 22, 2012 5:51 PM

Hello guys, just a simple question. I have a textbox inside the stage. I just want to know how will I access it using oop methodology. Thank you for your help guys.

  • Currently Being Moderated
    Apr 22, 2012 7:50 PM   in reply to sungelo

    Select the textfield and then assign it and instance name in the Properties panel... if you don't see an option for that in the properties panel you need to change it to be a dynamic textfield.  Once you have an instance name assigned to it, you use that name to target it for anything you want to do with it.  For instance, if you name it "tField", then to assign some text to it you would use...


    tField.text = "some text";

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points