Skip to main content
Known Participant
October 3, 2007
Question

Object TextField

  • October 3, 2007
  • 3 replies
  • 244 views
Hello, I have two text strings that are stored in variables and When i concatenate (put them together) I get another text string. However what I would like is for this new text sting to reference an object name.

Heres a basic example

var one = "test";
var two = "y";
var three = one + two;

trace(three);

I would like three to be referencing an object name.

If anyone could help it would be appreciated.

Jeff England
This topic has been closed for replies.

3 replies

clbeech
Inspiring
October 3, 2007
no prob, you're welcome.
Known Participant
October 3, 2007
Thanks alot, you saved me alot of grief

Jeff England
clbeech
Inspiring
October 3, 2007
OK, this shouldn't be too difficult really. If you have Objects set up that equal the string you can reference the Object using the 'this' keyword provided that they are at the root level. something like this: