We help IT Professionals succeed at work.

Event.CHANGE not doing what I expected.

Medium Priority
265 Views
Last Modified: 2012-05-11
REOPENED QUESTION:

Well, for some reason I still cannot get it to work.  I have a textbox (tb1) that gets text from an XML dynamically.  I want a different textbox (tb2), in the same swf, to display the same on-the-fly text as tb1.  Below is the code I am using which does not work.

tb1.addEventListener(Event.CHANGE, texter);
function texter(event:Event):void
{
	tb2.text = tb1.text;
}

Open in new window


Any help to fix this would be greatly appreciated.
Comment
Watch Question

rock star
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
You may need to provide more code, or the source FLA so we can track down the issue.

Author

Commented:
I got it to work, the EventListener was on the wrong object...my bad.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.