Re: [Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros
Thanks mate...ive got it: newBut.link2 = mainMenus[i].childNodes[1].firstChild.nodeValue; newBut.link = mainMenus[i].childNodes[0].firstChild.nodeValue; On 7/24/06, Mike Boutin <[EMAIL PROTECTED]> wrote: Yes you can use it in the same way... eg. mainMenu[i].childNodes[i].chil

Re: [Flashcoders] XML access

2006-07-24 Thread Mike Boutin
Yes you can use it in the same way... eg. mainMenu[i].childNodes[i].childNodes[0].firstChild.nodeValue; Jose Maria Barros wrote: sorry...i didnt explained the whole thing.. the thing is that flash duplicates one button mc with all the elements from the xml...and makes a loop. Every button have

Re: [Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros
ups..this: http://www.kirupa.com/developer/mx2004/pg/kresge.jpg >> this dont work.. http://www.kirupa.com/developer/mx2004/pg/medialab.jpg On 7/24/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote: sorry...i didnt explained the whole thing.. the thing is that f

Re: [Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros
sorry...i didnt explained the whole thing.. the thing is that flash duplicates one button mc with all the elements from the xml...and makes a loop. Every button have a different link for a different pictures... But the first one works good..(newBut.link = mainMenus[i].firstChild .firstChild.node

Re: [Flashcoders] XML access

2006-07-24 Thread Mike Boutin
My not use childNodes? mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; Jose Maria Barros wrote: Hi, i have the xml: http://www.kirupa.com/developer/mx2004/pg/kresge.jpg http://www.

[Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros
Hi, i have the xml: http://www.kirupa.com/developer/mx2004/pg/kresge.jpg http://www.kirupa.com/developer/mx2004/pg/medialab.jpg in flash, the variable "link" that holded the "image" node: newBut.link = mainMenus[i].firstChild.firstChild.nodeValue; worked..welll...