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
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
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
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
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.
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...
6 matches
Mail list logo