Solved

Tree Cell Rendering : How ? (Flash MX 2004)

Posted on 2004-09-25
2
413 Views
Last Modified: 2008-01-09
Hi,

I want to develop a Tree Cell Renderer which, when a cell is selected, would uncover a Tree Control. I want to use this like a 'drill down' tool, which would populate at run-time from data of a Web Service at the database end.

I have the WebService ready and the datagrid works perfectly with default data formats.. now what if i had to implement a Tree in each cell of a column..how should i do that? Any help would be greatly appreciated !!

Ideally this (tree in each cell) would just show the top-level node and not populate it unless clicked ofcourse.

I also presume that I should be using some kind of "expansion in place" user interface pattern. I request any kind of pointers on how I should go about the tree rendering, ...just any info would help!!

Thanks.


P.S:- I believe the basic Cell Renderer class would contain the following code: am i right?

class TreeCellRenderer extends UIComponent {

         var tree : MovieClip;

         function createChildren(Void) : Void {
     tree = createClassObject(CheckBox, "tree", 1, {styleName:this, owner:this});
     tree.addEventListener("click", this);
     }


         function setValue(str:String, item:Object, sel:Boolean) : Void {
     tree.dataProvider = "{xmldatamodel}";
                // Where xmldatamodel is a mx:xml tagged model to populate tree statically just for testing
     }

}
0
Comment
Question by:pampadevelopers
2 Comments
 
LVL 6

Accepted Solution

by:
nishasrilankan earned 500 total points
ID: 12157403
trye this link..
http://philflash.inway.fr/treeedrd/treeedrd.html

this page in French...I used google's translated page..
0
 

Author Comment

by:pampadevelopers
ID: 12158437
Thanks nishasrilankan!! that was exactly what I was looking for. :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now