Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Get properties of node by node that Attachto it (Read 1654 times)
winT
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Dec 25th, 2011
Get properties of node by node that Attachto it
Dec 26th, 2011 at 2:21pm
Print Post  
I have a node that attach to another node:

Shapenode node1 = new Shapenode();
Shapenode node2 = new Shapenode();
node2.attachTo(node1);

How can I get the properties of node1 (such as position , tag etc') by node2 ? so when clicking node2 I want to get propreties of node1 ,
I want to do something like: "node2.node1.tag "

Thanks in advance!
  
Back to top
 
IP Logged
 
winT
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Dec 25th, 2011
Re: Get properties of node by node that Attachto i
Reply #1 - Dec 26th, 2011 at 2:37pm
Print Post  
I find it :
node1 = (ShapeNode)node2.MasterGroup.MainItem
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint