Solved

Tree Cell Rendering : How ? (Flash MX 2004)

Posted on 2004-09-25
2
421 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

777 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