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

  • Home
  • SEARCH
  • 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 6102709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:38:45+00:00 2026-05-23T13:38:45+00:00

I am updating an older project, written in Flex 3 with some new functionality

  • 0

I am updating an older project, written in Flex 3 with some new functionality and I cant figure out how to do something that appears to be really simple.

I am passing in data to a panel via XML and binding the properties of the panel to this XML, so for example:

<mx:Panel label="{_data.@label}" title="{_data.@title}" borderColor="{_data.@borderColor}"/>

My question is simple:

How do I set the panel Title and Status colors using data that is passed in the XML?

You can set titleStyleName to the name of a styledeclaration but the are no styles for titleColor or statusColor.

  • 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-23T13:38:46+00:00Added an answer on May 23, 2026 at 1:38 pm

    Thanks Jax, however that wasnt quite the answer I was looking for.

    The difference between say for example, color and titleStylename is that you can directly bind the css attribute of color to your XML data for example

    ‘color={_data.@color}’

    However this does not wok with titleStyleName because it requires setting up a new styledecclaration.

    I have come up wiith a solution however, where I have extended the Panel and added a Bindable titleColor variable. I then set the color of the textbox upon any changes – see below:

    ‘
    public class PanelWithColorTitle extends Panel
    {

        public function PanelWithColorTitle() 
        {
    
        }
    
        [Bindable] public var _titleColor:uint
    
        public function setTitleAndStatusColor():void
        {
            trace(">>PanelWithColorTitle:setTitleAndStatusColor--")
            titleTextField.setColor(_titleColor)
            statusTextField.setColor(_titleColor)
    
        }
    
        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
        {
            super.updateDisplayList(unscaledWidth, unscaledHeight);
            setTitleAndStatusColor()
        }
    }
    

    }
    ‘

    Thanks for looking anyway!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am updating some older OpenCV code that was written in (I guess) an
I'm after some guidance on a new project I'm working on that requires low
I'm updating some older code that used the v2 API for Google Maps. On
When updating my checked out directory with TortoiseSVN, some subfolders are listed as Skipped
I'm working on an older project, updating it. Part of the program has a
I'm working on a project where we are updating client databases from older version
I am updating some older code to be integrated with SQL. I work for
I`ve encountered the problem after updating some gems, so basically all older gems are
I have an older server running Apache and SVN (v1.6.15). I have some new
I have been tasked with updating a old project that I did not write.

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.