Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-30 Thread Lois IN

I'm sure that print the _x and the _y from node to the tree component, is
impossible; but now I trying to print some element by roll over the mouse.

I have the same listener, but this traces the atribute in the node of the
xml:

var listenerObject:Object = new Object();
listenerObject.itemRollOver = function(eventObject:Object) {
   //Only works if I click in the node.
   trace (eventObject.target.selectedNode.attributes.idnod);
   //it doesn't work!
   //trace (eventObject.target.itemRollOver.attributes.idnod);
};
menuTree2.addEventListener(itemRollOver, listenerObject);

If I try to trace the atribute idnod from my xml by roll over the mouse,
the result is undefined but if I press on any node it works..

How can I modify this code to works only with on roll over function?


Thanks a lot, and sorry if you don't understand all the message... my
english is too bad.




2007/1/27, Alain Rousseau [EMAIL PROTECTED]:


import mx.utils.Delegate;

var listenerObject:Object = new Object();
listenerObject.itemRollOver = Delegate.create(this, handleRollOver);

function handleRollOver(eventObject:Object) {
trace(menuTree2.selectedNode._y);
}

menuTree2.addEventListener (itemRollOver, listenerObject);



If the selectedNode has a ._y property it will work well. Otherwise
check to see what properties are available to you for that node. I don't
really know the Tree component so I can't be sure.

HTH

Alain


Lois IN wrote:
 I'm sorry, but when I typing the code I forget this 2.
 The code is the same, and the listener is working, but I can't print
 the the
 _x _y:

 var listenerObject:Object = new Object();
 listenerObject.itemRollOver = function(eventObject:Object) {
trace(menuTree2.selectedNode._y);
 };
 menuTree2.addEventListener (itemRollOver, listenerObject);



 2007/1/26, Hans Wichman [EMAIL PROTECTED]:

 Hi,
 i see menuTree*2*.selectedNode and menuTree.addEventListener?
 Beside that, might be a scoping/reference issue, your listener doesnt
 have
 a
 reference to the menuTree.

 greetz
 JC


 On 1/26/07, Lois IN [EMAIL PROTECTED] wrote:
 
  Hello,
  (first of all, sorry for my english)
 
  I have the Tree component in my scene and this is generated by a xml.
 It's
  working fine.
 
  But I want to know the _x and the _y of any tree node or folder, by
  passing
  mouse over them, with the function itemRollOver.
 
  For example, the Tree shows that:
 
  FOLDER
  SubFolder_A
  SubFolder_B
  SubFolder_B1
  SubFolder_B2
  SubFolder_B3
  SubFolder_C
 
  If the mouse is over SubFolder_B1 the _x and the _y are diferent
 than
  SubFolder_A...
 
  I try with a Listener, like this:
 
  var listenerObject:Object = new Object();
  listenerObject.itemRollOver = function(eventObject:Object) {
 trace(menuTree2.selectedNode._y);
  };
  menuTree.addEventListener(itemRollOver, listenerObject);
 
  but the tracer is undefined.
 
 
  Somebody knows about it?
 
  Thanks a lot!
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-27 Thread Alain Rousseau

import mx.utils.Delegate;

var listenerObject:Object = new Object();
listenerObject.itemRollOver = Delegate.create(this, handleRollOver);

function handleRollOver(eventObject:Object) {
   trace(menuTree2.selectedNode._y);
}

menuTree2.addEventListener (itemRollOver, listenerObject);



If the selectedNode has a ._y property it will work well. Otherwise 
check to see what properties are available to you for that node. I don't 
really know the Tree component so I can't be sure.


HTH

Alain


Lois IN wrote:

I'm sorry, but when I typing the code I forget this 2.
The code is the same, and the listener is working, but I can't print 
the the

_x _y:

var listenerObject:Object = new Object();
listenerObject.itemRollOver = function(eventObject:Object) {
   trace(menuTree2.selectedNode._y);
};
menuTree2.addEventListener (itemRollOver, listenerObject);



2007/1/26, Hans Wichman [EMAIL PROTECTED]:


Hi,
i see menuTree*2*.selectedNode and menuTree.addEventListener?
Beside that, might be a scoping/reference issue, your listener doesnt 
have

a
reference to the menuTree.

greetz
JC


On 1/26/07, Lois IN [EMAIL PROTECTED] wrote:

 Hello,
 (first of all, sorry for my english)

 I have the Tree component in my scene and this is generated by a xml.
It's
 working fine.

 But I want to know the _x and the _y of any tree node or folder, by
 passing
 mouse over them, with the function itemRollOver.

 For example, the Tree shows that:

 FOLDER
 SubFolder_A
 SubFolder_B
 SubFolder_B1
 SubFolder_B2
 SubFolder_B3
 SubFolder_C

 If the mouse is over SubFolder_B1 the _x and the _y are diferent 
than

 SubFolder_A...

 I try with a Listener, like this:

 var listenerObject:Object = new Object();
 listenerObject.itemRollOver = function(eventObject:Object) {
trace(menuTree2.selectedNode._y);
 };
 menuTree.addEventListener(itemRollOver, listenerObject);

 but the tracer is undefined.


 Somebody knows about it?

 Thanks a lot!
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Trace the _x and _y from node of Tree component

2007-01-26 Thread Lois IN

Hello,
(first of all, sorry for my english)

I have the Tree component in my scene and this is generated by a xml. It's
working fine.

But I want to know the _x and the _y of any tree node or folder, by passing
mouse over them, with the function itemRollOver.

For example, the Tree shows that:

FOLDER
SubFolder_A
SubFolder_B
SubFolder_B1
SubFolder_B2
SubFolder_B3
SubFolder_C

If the mouse is over SubFolder_B1 the _x and the _y are diferent than
SubFolder_A...

I try with a Listener, like this:

var listenerObject:Object = new Object();
listenerObject.itemRollOver = function(eventObject:Object) {
   trace(menuTree2.selectedNode._y);
};
menuTree.addEventListener(itemRollOver, listenerObject);

but the tracer is undefined.


Somebody knows about it?

Thanks a lot!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-26 Thread Hans Wichman

Hi,
i see menuTree*2*.selectedNode and menuTree.addEventListener?
Beside that, might be a scoping/reference issue, your listener doesnt have a
reference to the menuTree.

greetz
JC


On 1/26/07, Lois IN [EMAIL PROTECTED] wrote:


Hello,
(first of all, sorry for my english)

I have the Tree component in my scene and this is generated by a xml. It's
working fine.

But I want to know the _x and the _y of any tree node or folder, by
passing
mouse over them, with the function itemRollOver.

For example, the Tree shows that:

FOLDER
SubFolder_A
SubFolder_B
SubFolder_B1
SubFolder_B2
SubFolder_B3
SubFolder_C

If the mouse is over SubFolder_B1 the _x and the _y are diferent than
SubFolder_A...

I try with a Listener, like this:

var listenerObject:Object = new Object();
listenerObject.itemRollOver = function(eventObject:Object) {
   trace(menuTree2.selectedNode._y);
};
menuTree.addEventListener(itemRollOver, listenerObject);

but the tracer is undefined.


Somebody knows about it?

Thanks a lot!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-26 Thread Lois IN

I'm sorry, but when I typing the code I forget this 2.
The code is the same, and the listener is working, but I can't print the the
_x _y:

var listenerObject:Object = new Object();
listenerObject.itemRollOver = function(eventObject:Object) {
   trace(menuTree2.selectedNode._y);
};
menuTree2.addEventListener (itemRollOver, listenerObject);



2007/1/26, Hans Wichman [EMAIL PROTECTED]:


Hi,
i see menuTree*2*.selectedNode and menuTree.addEventListener?
Beside that, might be a scoping/reference issue, your listener doesnt have
a
reference to the menuTree.

greetz
JC


On 1/26/07, Lois IN [EMAIL PROTECTED] wrote:

 Hello,
 (first of all, sorry for my english)

 I have the Tree component in my scene and this is generated by a xml.
It's
 working fine.

 But I want to know the _x and the _y of any tree node or folder, by
 passing
 mouse over them, with the function itemRollOver.

 For example, the Tree shows that:

 FOLDER
 SubFolder_A
 SubFolder_B
 SubFolder_B1
 SubFolder_B2
 SubFolder_B3
 SubFolder_C

 If the mouse is over SubFolder_B1 the _x and the _y are diferent than
 SubFolder_A...

 I try with a Listener, like this:

 var listenerObject:Object = new Object();
 listenerObject.itemRollOver = function(eventObject:Object) {
trace(menuTree2.selectedNode._y);
 };
 menuTree.addEventListener(itemRollOver, listenerObject);

 but the tracer is undefined.


 Somebody knows about it?

 Thanks a lot!
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com