?
Solved

Tree Cell Rendering : How ? (Flash MX 2004)

Posted on 2004-09-25
2
Medium Priority
?
447 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
nishasrilankan earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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 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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

762 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