Hi all,
Didn't see a actionscript section so decided to post in webdesign.
Ok so I have a flash file using action script 2.0 and dynamically showing fields from an xml of languages and a blurb that goes along with each language.
Here is a snippet of the xml.
<languages>
<version>
<lang>English</lang>
<title>blurb in english.</title>
</version>
<version>
<lang>Français</lang>
<title>blurb in french.</title>
</version>
</language>
Since I am new to action script and would rather use as2.0 wondering if someone can help me figure out how to create a rollover that changes the title whenever the person rolls over a movie clip representing that language.
example: a dynamic text box with english with an invinsible mc that if rolled over will display english in the dynamic title box. If I roll over the french text box with invisible mc the title will change to french blurb.
The default of the title is always english.
What I have so far in actionscript:
function loadXML(loaded) {
if (loaded) {
_root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
lang_txt.text = _root.inventor;
title_txt.text = _root.comments;
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("content.xml");
Hope this makes sense.
Thanks if Anyone can help.