PDA

View Full Version : Scope Question w/ Components


dothedrew9
01-06-2007, 08:25 AM
Alright, if someone could help me with this I'd greatly appreciate it.

Using the window component you need to select a contentPath which I linked to a movie w/in my library. My problem is that I have a textfield within the movie embedded in the window component. I would like to dynamically change the .text property of the textfield. How would path that absolutely?

I've tried:
_root.myWindow.myTextField.text = "new Text";
AND:
_root.myWindow.myLinkedMovie.myTextField.text = "new Text";

Neither worked. Any Ideas? I appreciate any help.

mooska
01-06-2007, 08:36 AM
myWindow.addEventListener("complete", {complete:function (e:Object) {
myWindow.content.field.text = "hello";
}});

dothedrew9
01-06-2007, 09:28 PM
Thank you! I was missing the myWindow.content.Field.