How do I load a Flex Tree node icon from an URL?

Posted on 2009-05-03
Last Modified: 2012-05-06
i want to load tree node icon for each tree node from URL stored in data that bind to tree node
how can i do this
Question by:waleedpro
LVL 12

Accepted Solution

lexxwern earned 500 total points
ID: 24292633

Try this example below:
<?xml version="1.0" encoding="utf-8"?>

<!-- -->

<mx:Application xmlns:mx=""








            public var myBulletStarIcon:Class;



    <mx:XML id="dp">


            <league label="American League">

                <division label="East">

                    <team label="Boston" icon="myBulletStarIcon" />

                    <team label="New York" />

                    <team label="Toronto" />

                    <team label="Baltimore" />

                    <team label="Tampa Bay" />


                <division label="Central">

                    <team label="Cleveland" icon="myBulletStarIcon" />

                    <team label="Detroit" />

                    <team label="Minnesota" />

                    <team label="Chicago" />

                    <team label="Kansas City" />


                <division label="West">

                    <team label="Los Angeles" icon="myBulletStarIcon" />

                    <team label="Seattle" />

                    <team label="Oakland" />

                    <team label="Texas" />





    <mx:Tree id="TreeProject"






            height="240" />


Open in new window


Author Closing Comment

ID: 31577351
not need any more

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to show popup window instead of expanding functionality. 10 258
Refresh Image 2 30 940
Sum column DataGrid 3 572
Adobe X Reader 6 340
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

12 Experts available now in Live!

Get 1:1 Help Now