PDA

View Full Version : Targeting Text Fields for XML within a Screen-Based Document


sw33tdesign
09-21-2005, 09:34 PM
I have a working function that I placed on a screen. Both text areas are located on the same screen.

function loadXML(loaded) {
if (loaded) {
inventor = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
comments = this.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
name_txt.text = inventor;
comment_txt.text = comments;
} else {
content = "file not loaded!";
}
}

If I move the text areas to a child screen, of course it breaks. How does one target screens with XML?

For example, I have name_txt and comment_txt on the "presentation" screen. As the presentation moves to screen "john," can I place a script on the "john" screen to change the values of my text fields on the "presentation" screen? Or do I have to create new text fields per screen?

Thanks so much in advance.

MichaelxxOA
09-23-2005, 03:22 AM
Seeing as you are from Apple Valley, feel free to email me, or contact me by one of these messengers

aim: PimpinxxPenguin
yahoo: ofagemichael@yahoo.com
msn: Michael@createage.com

Take Care
-Michael

flabbygums
09-23-2005, 03:57 AM
I'm pretty sure you target the names of them just like movie clips with dot syntax. If not - sorry.

YourSceneName.name_txt.text = inventor;