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 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

In batch, can you have different colors per line. For example if you had
How can i have a UILabel with two different colors for the font? I
I am looking for nested menu which can have different background images , below
I have a div with different colors for both the border-bottom and border-right properties.
How i can change the color with gradient??? I have this now,but is different
I need to have a JQuery color Picker, where I can change the different
I have page where I use model which can have different types (depending by
I want to create a website with various users. The users can have different
I've got a table recording views of programs. Each program can have two different
Shaders can have lots of different uniform names + attributes. How can I make

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.