Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Tree component questions

Tree component questions

2004-02-22       - By ryanm

 Back
Reply:     1     2     3     4  

I 've been digging through the documentation on the tree control, still
trying to avoid having to build my own, and I 'm having problems due to the
lack of documentation. In the docs, the only events listed for the tree are
nodeOpen and nodeClose, but it also says that it "Inherits all events from
UIComponent, UIObject, View, ScrollView, ScrollSelectList, and List class. "

So, what I 'm trying to do is fire a function when the selected index is
changed by user interaction (clicking an item in the tree). Now, if this
made sense, then I would just use the change event to fire it. But I can 't
get the tree component to fire a change event. Am I doing something wrong,
or is there just no change event for the tree component? It *should* have
one, since it supposedly inherits all of the events from the List class.

oTreeListener = new Object();
oTreeListener.change = function(oEvnt){
trace( "fired ");
};
TreeControl.addEventListener( "change ", oTreeListener);

Why doesn 't this work?

ryanm


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104950
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)