Here is my deal. I need to store this outside of flash to be loaded:
Join us in corporate worship:<br>Sunday Morning at 10:30am<br>Wednesday Night at 7:00pm<br><br><u><a href='http://www.huntcal.com/cgi/calview.cgi/chapel/cell?vm=r&vm=-L' target='_blank'>Cell Groups meet throughout the week</a></u>
A text file no worky because it contains a “&” symbol. So I was forced to look into XML (probably for the best anyway, because the organization is unmatched)… Here is what I did:
My .xml file:
<?xml version="1.0"?>
<rotatorVariables>
<numbers>
<num name="topNum" value="6" />
<num name="rgtNum" value="8" />
<num name="btmNum" value="6" />
</numbers>
<text>
<display>
<![CDATA[This is my node's value.]]>
</display>
</text>
</rotatorVariables>
and my FLA:
var menuXml:XML = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
var nums:Array = this.firstChild.firstChild.childNodes;
for (var i = 0; i<nums.length; i++) {
trace(nums*.attributes.name);
trace(nums*.attributes.value);
}
var textDis = this.firstChild.childNodes[1].firstChild;
trace(textDis.nodeName);
trace(textDis.nodeValue);
}
};
menuXml.load("rotatorVariables.xml");
Everything is great except textDis.nodeValue traces null everytime… I have no idea why it is doing this… it does not in some other example files I was working with… I also tried tracing just “textDis” but that returns the value of it WITH the tags and replaces all symbols with &alt; sytax… that makes it ugly for my getURL I will use down the road… any help would be beautiful