Hi.
I have a really stupid problem.
I've got a dynamically created Window component, with a TextArea inside (in an mc called 'message_mc', and set the contentPath to message_mc).
Lets call the TextArea message_txt.
I'm unable to give the text of it after it is created.
I tried, that I can reach it from the attached movies timeline, so if I put this code to the first frame of message_mc, it is working:
ActionScript Code:
message_txt.text = "set by inline script"
If I put a regular textField next to it, and call it 'tmp_txt', I can set it's text from the Window comps 'complete' event,like
ActionScript Code:
var windowListener = new Object()
windowListener.complete = function(evtObj) {
evtObj.target.content.message_txt.text = "This is my content"
evtObj.target.content.tmp_txt.text = "this is tmp"
}
windowListener.click = function(evtObj) {
evtObj.target.deletePopUp()
}
myWindow.addEventListener("complete", windowListener)
But I can't do it with the TextArea. You can see, I try to set both the TextArea and the textfield's text in the same script, they are on the same frame, and the field get the text, the area doesn't.
AnyHelp?