Groups | Blog | Home
all groups > flash data integration > december 2006 >

flash data integration : parentNode help


kokochka
12/26/2006 5:48:43 PM
I can get a value with
bNode.parentNode.attributes.name,

BUT
I need to get something
bNode.parentNode.parentNode.attributes.name
(two level up). And this doesn't work...

How can i do it?
Please help
Scott Johnson
12/26/2006 6:04:40 PM
I have not had to back up before but one thing you might consider doing
is place that needed info into a variable when you get to that part of
the tree and before you go down it.

Hope that makes sense, it will work unless you are using a different
logic of drilling down the nodes.

[quoted text, click to view]
cinemaguy
12/27/2006 8:23:13 PM
Try this...

var xNode:XMLNode = bNode.firstchild;
trace(xNode);
kokochka
1/15/2007 9:56:32 AM
This is because I bNode contained only certain childNodes. So it cannot go way up to the root node of the original XMLNodes.

Scott Johnson
1/16/2007 6:02:14 AM
This confuses me.

Maybe I am not understanding what you are trying to do.

Where are you getting the bNode from?

It had to come from a root node somewhere.
If you don't have the original nodes above it, then you can't access them.

Can you email me the script and I can better help you.

Scotty

[quoted text, click to view]
AddThis Social Bookmark Button