02-08-2011 08:22 AM
I have developed an application that uses 2 containers and adds TextInput UI control to one of the containers. I am able to catch the click event if i add the control directly to stage. However, when added to the container, i am unable to catch the events for that control. Do i need to do anything extra to listen for events when adding controls to a container.
Any clues are highly appreciated.
02-08-2011 09:01 AM
What event are you listening to? Sounds like you need to move the addEventListener to the container instead of the stage. If you are listening to some event to the text input (like "change"), then you should be adding the event listener to the text input control. In general, you add the event listener to the object producing the event.