|
-
[RESOLVED] xml links loaded into a button within a MC
Hi, im currently settig up a simple (well i thought it would be simple) navigation panel that has a button within a MC, im loading the links for the buttons from XML and they load into buttons that are on the main timeline no problem. But when i try and load those links to the same buttons that are nexsted within a MC they dont work. Any ideas? Heres the code im using to just get buttons on the main time line working
_xml = new XML();
_xml.ignoreWhite = true;
_xml.load("balloonxml.xml");
_xml.onLoad = function(success){
if(!success){
trace("XML FAILED TO LOAD");
}else{
trace("XML LOADED");
linksArray = this.firstChild.childNodes;
for (var n=0;n!=linksArray.length;n++){
trace("linksArray["+n+"] - "+linksArray[n].childNodes);
}}
};
myButton1.onRelease = function(){
trace(linksArray[1].childNodes);
getURL(linksArray[1].childNodes, "_self");
};
-------------------------------------------------
Heres the XML
---------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<links>
<link>http://www.google.com</link>
</links>
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|