Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6226671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:04:31+00:00 2026-05-24T09:04:31+00:00

I get the folder icon, never the label. I’ve tried numerous datasources, always the

  • 0

I get the folder icon, never the label. I’ve tried numerous datasources, always the same thing. File, ajax call, text, it always fails.

In the code below I even set a custom handler and watch the XML come in, I set a static text label going out. Never anything shown. This happens without the label function and using labelField. Yes, I’m 100% sure the attribute matches. Again, tried with numerous different datasources.

I don’t know what would be obscuring the text, but not the icon. But I checked for that as well.

Tried this simple one file example, and it compiles fine.

Full code is below:

<?xml version="1.0" encoding="utf-8"?>
<s:HGroup xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">
<fx:Declarations>       
    <fx:XML id="selectedData2" source="assets/xml/orgchartmodel.xml"/>
</fx:Declarations>

<fx:Script>
    <![CDATA[   

        private function tree_labelFunc(item:XML):String {
            var label:String;

            label = "flexisshit";  //breakpoint hits here but I never see this text

            return label;
        }           
    ]]>
</fx:Script>

<mx:Tree id="tree" dataProvider="{selectedData2}" labelFunction="tree_labelFunc" width="100%" height="100%"  showRoot="false" textDecoration="underline" textSelectedColor="0xFFCCFF" depthColors="[#FFFFFF, #EEEEEE, #DDDDDD, #CCCCCC, #BBBBBB, #AAAAAA]" />
</s:HGroup>

The XML file used above (only part shown)

<employee layout="default" name="Eric Joplin" email="ejoplin@yoyodyne.com" phone="555-0100" fax="555-0101" businessUnit="Management" status="present" gender="male">
<employee name="Gary Roberts" layout="left_below" email="groberts@yoyodyne.com" phone="555-0100" fax="555-0101" businessUnit="Logistics" status="present" gender="male">
<employee layout="default" name="Alexander Burns" email="aburns@yoyodyne.com" phone="555-0102" fax="555-0103" businessUnit="Logistics" status="present" gender="male"/>
<employee layout="default" name="John Conner" email="jconner@yoyodyne.com" phone="555-0104" fax="555-0105" businessUnit="Logistics" status="present" gender="male"/>
</employee>
<employe ....
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:04:33+00:00Added an answer on May 24, 2026 at 9:04 am

    I tested out your code, it works for me so I’m guessing you have a css or some code somewhere that is embedding a font. Try setting the fontFamily to Verdana directly on the mx:Tree:

    <mx:Tree id="tree"
             fontFamily="Verdana"
             width="100%" height="100%"
             textDecoration="underline"
             textSelectedColor="0xFFCCFF"
             dataProvider="{xmlListColl}"
             labelFunction="tree_labelFunc"
             showRoot="false"
             depthColors="[#FFFFFF, #EEEEEE, #DDDDDD, #CCCCCC, #BBBBBB, #AAAAAA]"
             />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get the system icon of a specified folder, but maybe the
How I can get actual folder path where my program is without my exe
You can use SelectFolder() to get a folder or GetOpenFolderitem(filter as string) to get
i want to create functions what get the folder size. I write small function:
Is there a way to get the current folder path from within a XSLT
We need to reliably get the Quick Launch folder for both All and Current
How do I get the reference to a folder for storing per-user-per-application settings when
I am trying to get the path to a folder in my website root
I'm trying to get the location of Window's Local AppData folder in a version-agnostic
I'm wanting to change the icon of every sub folder in a particular directory,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.