Solved

Tree Cell Rendering : How ? (Flash MX 2004)

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

708 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

15 Experts available now in Live!

Get 1:1 Help Now