Re: [flexcoders] addEventListener and setting events in mxml

2006-05-26 Thread Tom Chiverton
On Wednesday 24 May 2006 21:27, John Grden wrote: 1. Why won't this work? treeView.addEventListener(nodeOpen, open); In flex 2? Because there is no such event. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP.

Re: [flexcoders] addEventListener and setting events in mxml

2006-05-26 Thread John Grden
Yeah, that's what I just found out. it used to be nodeOpen, now it's itemOpenTHanks just the same TomJGOn 5/26/06, Tom Chiverton [EMAIL PROTECTED] wrote:On Wednesday 24 May 2006 21:27, John Grden wrote: 1.Why won't this work? treeView.addEventListener(nodeOpen, open);In flex 2?Because there

[flexcoders] addEventListener and setting events in mxml

2006-05-24 Thread John Grden
mx:Tree x=0 y=0 width=506 height=590 nodeOpen=open(event) nodeClose=close(event) labelField=@label id=treeView/mx:Tree I have 2 questions really:1. Why won't this work? treeView.addEventListener(nodeOpen, open);2. Can I assign a static class method in the nodeOpen= attribute of the xml? Like