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 699571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:24:03+00:00 2026-05-14T03:24:03+00:00

How can I have different colors for different tabs in SuperTabNavigator. Below is the

  • 0

How can I have different colors for different tabs in SuperTabNavigator.

Below is the code to my SuperTabNavigator with three tabs:

<containers:SuperTabNavigator x="0"
                     y="10"
                     width="100%"
                     height="100%"
                     right="1"
                     top="1"
                     left="1"
                     bottom="1" color="black"
                     creationPolicy="all"
                     id="tab_nav" popUpButtonPolicy="{SuperTabNavigator.POPUPPOLICY_OFF}">
        <mx:Canvas label="My Friends" id="friends_container" width="100%" height="100%"/>
<mx:Canvas label="My Groups" id="groups_container" width="100%" height="100%"/>
<mx:Canvas label="Address Book" id="address_container" width="100%" height="100%"/>
</containers:SuperTabNavigator>

I want to have different color for every different tab.

How should I do this.

I know there is a firstTabStyleName and lastTabStyleName:
is there any way to have the secondTab or the middleTab, anything like that could help me to have different colors on tabs as well.

  • 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-14T03:24:03+00:00Added an answer on May 14, 2026 at 3:24 am

    Okey I really did not get a very good answer to this. But I found a way that solves my purpose.

    <containers:SuperTabNavigator x="0"
                     y="10"
                     width="100%"
                     height="100%"
                     right="1"
                     top="1"
                     left="1"
                     bottom="1" color="black"
                     creationPolicy="all"
                     tabStyleName="secondTabGradient"
                     firstTabStyleName="firstTabGradient"                    
                     lastTabStyleName="lastTabGradient"
                     id="tab_nav" popUpButtonPolicy="{SuperTabNavigator.POPUPPOLICY_OFF}">
        <mx:Canvas label="My Friends" id="friends_container" width="100%" height="100%"/>
    

    So the firstTabGradient get the style for first tab, secondTabGradient for second tab and the lastTabGradient for last tab, which for me is the third tab.

    This way get three different colored tabs.

    I am still working on the css part. But it is good enough for any references:

        <mx:Style>
        .firstTabGradient
        {
            backgroundImage: ClassReference("custom.GradientBackground");
            backgroundSize: "100%";
            background-color: green;
            fillColors: #23b34d, #06832a;
            fillAlphas: 1, 1;           
        }
        .lastTabGradient
        {
            backgroundImage: ClassReference("custom.GradientBackground");
            backgroundSize: "100%";
            background-color: blue;
            fillColors: #028edf, #02bba0;
            fillAlphas: 1, 1;
        }
        .secondTabGradient
        {
            backgroundImage: ClassReference("custom.GradientBackground");
            backgroundSize: "100%";
            background-color: red;
            fillColors: #d70324, #a6001a;
            fillAlphas: 1, 1;
        }
    
    </mx:Style>
    

    Thank you
    Zeeshan

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

Sidebar

Related Questions

You can have different naming convention for class members, static objects, global objects, and
How can I have a view render a partial (user control) from a different
I currently have a site where different users can login, and depending on their
I have a page upon which a user can choose up to many different
Apparently I can't move files on different volumes using Directory.Move. I have read that
So, I have a decimalfield that can be 3 different values. In my view,
Is it possible to have different colors for on screen and hardcopy display of
I use JButtons in my application. They need to have different colors. First I
Routines can have parameters, that's no news. You can define as many parameters as
I have a program that can have a lot of parameters (we have over

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.