Welcome!

Steve House

Subscribe to Steve House: eMailAlertsEmail Alerts
Get Steve House via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Steve House

This article is about creating a Flex tree control that uses a component hierarchy as the data provider. As with most of my Flex development, after struggling for days and then finally getting something to work, I later find out that there is a much easier way to do it that none of my searches ever turned up. I am a beginner Flex 2 developer, so any constructive feedback would be greatly appreciated. So, if you are like me you probably have a hierarchy in your database that looks something like this: iSubjectId = 1     sSubjectName = Science     iParentSubjectId = null iSubjectId = 2     sSubjectName = Biology     iParentSubjectId = 1 In the above example, the top level subjects have null for their parent IDs and then second+ levels use the ID of their parent. When using CFCs to represent this hierarchy I would do something like this: Subject.cfc     iSubjectId = 1   ... (more)