[flexcoders] De-Select on Tree does not fire change event

2005-10-18 Thread Stacy Young










Ive got a button in which its state
depends on a selection in a tree. Seems that when I de-select a node the change
event doesnt fireanyway to get around that?



Thx!

Stace









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] De-Select on Tree does not fire change event

2005-10-18 Thread JesterXL





De-selecting via setting selectedIndex or a control 
+ click?

- Original Message - 
From: Stacy Young 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, October 18, 2005 12:39 PM
Subject: [flexcoders] De-Select on Tree does not fire change 
event


I’ve got a button in 
which its state depends on a selection in a tree. Seems that when I de-select a 
node the change event doesn’t fire…anyway to get around 
that?

Thx!
Stace





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] De-Select on Tree does not fire change event

2005-10-18 Thread Deepa Subramaniam










Hey Stacy 



The change event event fires only as a result of
user interaction. So if youre de-selecting a node by changing the trees
selectedIndex or selectedItem properties programmatically, you will not receive
an event. 



There are a few ways to get around this. You may
want to watch for changes to the Trees selectedItem/selectedIndex properties
(read: binding) or the easier thing would be for you to manually dispatch a
change event when the de-selection occurs programmatically. 



If the de-selection is occurring by user interaction
(ctrl + click), then Im seeing the change event fire when selection and
de-selection occurs. Of course that is in the case of multipleSelection=true.
If multipleSelection is not enabled, youll want to watch for a change
event on another node to register that the currently selected node is not
selected anymore.



HTH, 

deepa



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Stacy Young
Sent: Tuesday, October 18, 2005
9:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] De-Select on
Tree does not fire change event



Ive got a button
in which its state depends on a selection in a tree. Seems that when I
de-select a node the change event doesnt fireanyway to get around
that?



Thx!

Stace









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.