How to change the application background color dynamically

Hi all

In my project, I'm loading the user roles and rights-based mxml components. For each mxml component, I used different colors and displaying the component in the Center screen.

as
If the User Password [background color = blue] I'm component loading, managing partner
If the seller [backgound color = green] = user I'm loading component related vendor and etc..,.

My main.mxml application is background is different [default]
When I insert the component it must reflect the color [change the background color] in main.mxml application. How can I achieve this

I found the solution. ;)

[code]
private void LoadComponent(licensetype:String):void
{
var screen: UIComponent;
switch (licensetype)
{
case 'Manager': / / Load Manager Component
screen = new Manager();
addChild (screen);
this.setStyle('backgroundColor','#9E9A41');
break;
case 'Seller': / / load SellerComponent
screen = new Seller();
addChild (screen);
this.setStyle('backgroundColor',"#408080");
break;
by default:
default display screen with information
break;
}
}
[/ code]
:)

Tags: Flex

Similar Questions

  • How to change the tooltip background color in Adobe Acrobat Reader? - ...

    How to change the tooltip background color in Adobe Acrobat Reader? - ...

    Hi xiaolaq75134938,

    I'm sorry, it is not possible to change the background color of the ToolTip, it is a design behavior.

    Kind regards
    Nicos

  • How I change the fonts and colors of default return?

    I changed the font and the color of the text through the Tools button and the button options and the tab content. I can't find anything tell me how to change the fonts and colors to the colors and fonts by default. Can you advise me? I use Windows 7 Home Premium OS. Thank you.

    Hi Brenda19605,

    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a & s = do & r = 0 & s = as

    The default settings for the police are in this article:
    https://support.Mozilla.org/en-us/KB/some%20text%20shows%20up%20bold%20after%20upgrade

    Unfortunately for the default color has no good reference. For the text, but it is black (most lower-left), the background is white (color above left). Unvisited links is blue (column 8, line 5) and the visited link is purple (column 9, line 5).

    Let me know if you need help more!

    Lordfreak

  • How to change the size and color of 'staticText '?

    Can anyone share please how to change the size and color of the object "staticText"?

    function buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('pallet', 'Gear of Stress', undefined, {resizable: true});

    var txt is myPanel.add ("staticText", [0,0,100,20], "txt");.

    txt. newFont, fontSize, color?

    Return myPanel;

    }

    var myToolsPanel = buildUI (this);

    I did a quick test on a PC at the office and it seems that Gill without isn't a stock PC police. You could comment on these out or change them to a police stock as Helvetica or something. Once I removed that it has launched on PC very well.

  • Can I change the preview background color?

    Hello

    Can I change the preview background color?

    It is gray, can I change it?

    Thank you

    I use bridge cs6

    Thank you

    I have clearer or lighter in the background

    but I can't put gray 18% or tweak like photoshop

  • How to change the application installed HARD disk?

    My PC following setting:

    C: is for Window XP OS

    D: is installed application

    because the disc is not enough space and need to buy a new SATA III HARD disk after formatting under drive Z:

    I copy everything in D: z: readers and I would exchange the disks for the following parameter:

    D: old drive will become Z: drive for backup

    Z: old disk will become D: drive for installed application, because many applications and installed adjustment use the D: drive for application, so I'd like to preserve the D: drive for application, but I get no idea on how to swap the disks.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    This article describes how to change the drive letters on drives:

    "How to change drive letter assignments in Windows XP"
      <>http://support.Microsoft.com/kb/307844 >

    HTH,
    JW

  • How to change the application apps and the sysadmin password

    Hi expert,

    I know not how to change the password application and sysadmin in the oracle application. but I have a doubt.

    What is required at the bottom of the application when you go to change applications and the sysadmin password in the oracle application.

    Please suggest me what is the proper way to change the apps and the sysadmin password.

    to change the password for apps I followed the command below.

    FNDCPASS apps/apps 0 System/Manager SYSTEM APPLSYS < new password for applications >

    for sysadmin

    FNDCPASS apps/apps 0 USER sysadmin < new passwd for sysadmin > System/Manager

    Please clear my doubt.

    Thanks and greetings

    pritesh Rodriguez



    I know not how to change the password application and sysadmin in the oracle application. but I have a doubt.

    What is required at the bottom of the application when you go to change applications and the sysadmin password in the oracle application.

    You must stop the services before you can change the password of user apps, and then run the automatic configuration after changing the password and eventually train services to the top.

    Stop down services or the AutoConfig running is not required for SYSADMIN (and other users of the application).

    Please suggest me what is the proper way to change the apps and the sysadmin password.

    to change the password for apps I followed the command below.

    FNDCPASS apps/apps 0 SYSTEM APPLSYS System/Manager

    for sysadmin

    FNDCPASS apps/apps 0 system/sysadmin USER Manager

    Please clear my doubt.

    What change Applications using the apps schema password change Utility (FNDCPASS or AFPASSWD) (Doc ID 437260.1)

    Loss of password SYSADMIN. How to know the password of the user SYSADMIN (Doc ID 1066661.1)

    Thank you

    Hussein


  • Graphic intensity - how to change the gray background

    Currently I use a node use-> Get Image to gain a picture of my graph of the intensity.

    I want to change the gray background to a flat white or black. Is this possible?

    Graphics intensity is not the usual 'export simplified image', I would say that you paint the transparent background image (foreground and background).  If you really like the Peek, you could add a 'Horizontal smooth box' decoration at the front who don't become not part of the image.

  • How to change the icon font color

    Title of the Moose: icon font color

    can hoe I change the font color?

    Hello

    Thanks for posting the question in the Microsoft Community!

    You want to change the color of the font of the icons.

    Where are the icons located, the color you want to change?

    If you are referring to the desktop icons, you cannot change their color.

    Because desktop wallpaper images have different colors, it is easy for the colors of unreadable fonts if they are on top of the same color in a background image to display. For example, a black font on top a dark part of the background image or a white font on a white part of a background image.

    The desktop icon fonts are dynamic and show white on dark background and change in white with a shadow effect black on a light background.

    If you need any other assistance, let us know and we would be happy to help you.

  • How to set the page background color

    I would like to create a book with blank pages, some gray and some black backgrounds.  In photoshop, it's easy to set a background color, but I don't see how to do this in InDesign CS4.  It should be easy, but I can't find the answer anywhere!

    Thanks for your help.

    Paul

    Unless you intend to actually print the background color, rather than printing these pages in stock color, you should put a layer of sepatate behind everything and be together the nonprinting layer or turn off the visibility before the release.

    In addition, if the majority of the publication will be released on colored stock, you can change the shade [paper] to show something close, so you will not need to have a special background for these pages.

  • How to change the settings for color for HP PSC 1350 all-in-one printer

    HP psc 1350

    I have a printer psc 1350 HP for my windows vista. I just bought two ink cartridges and the black writing all go faded. How can I change the color settings, so it comes out better?

    I have a printer psc 1350 HP for my windows vista. I just bought two ink cartridges and
    Black writing all going faded. How can I change the color settings, so it comes out better?

    ================================
    Sounds like a bad printer cartridge or possibly a
    ... have printer problem you checked with the help of HP?

    Examples of documents Support HP:

    Colors on the Copies are incorrect
    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00712305&cc=us&LC=en&DLC=en&product=306888&tmp_track_link=ot_search

    Solving print quality problems
    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=bpu04822&cc=us&DLC=en&LC=en&JumpID=reg_R1002_USEN#N388

    I was wondering are these reloaded cartridges? I tried
    in my old model HP and it still wouldn't print.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to make the header background color or footer extend to the width of the browser?

    How to make the background color of the header or footer extend beyond the defined site? I would like the backround to extend to the width of the web browser of the user.

    Instructions to do this are included in creating a rectangle of width 100% which extends over the entire width of a browser window.

  • How to change the "Applications of database ID' in EBS

    Hello

    I stuck in the problem, by mistake I changed 'Database ID Applications' prod to shubh_prod at the bottom of the navigation path.

    (1) select ' profile > system '
    (2) search for 'Applications of database ID'

    Now I get the error like below


    APP-FND-01630: could not open the file /do1/oracle/prodappl/fnd/11.5.0/secure/PROD_shubh/shubh_prod.dbc for reading
    Cause file player: Setup encounters an error when you try to open the file /do1/oracle/prodappl/fnd/11.5.0/secure/PROD_shubh/shubh_prod.dbc for reading.


    Please guide me how to change 'Database ID Applications' to the shubh_prod prod again.

    Thank you
    The respect of
    Rerry

    Hello

    This is an expected - behavior please see (Note: 293609.1 - APP-FND-01542 by connecting directly to forms through the f60cgi in 11.5.10) for more details.

    Kind regards
    Hussein

  • How to change the content to display dynamically

    Hello

    In my application I need to change the contents of the active screen

    on the buttonclick... After click on the button I can't refresh content

    What could be the solution for this?

    Hi Sheeluwiki

    Thnx for the reply

    I solved it myself

    For BrowserField, we write

    _browserField.setFocus();_browserField.requestContent({HTML PAGE PATH});
    

    . setFocus() is necessary, or it gives IllegalStateException.

    and for LabelField and title... It is same as you suggest

  • How to change the font, size, color for long-term

    I like sending an e-mail using color. I got Windows 7 earlier this year. I had XP. At the same time, I changed the font, size and color, and there staed like that.

    However, I tried to change it again and I spent weeks trying. I know that they can be changed for each email, but I want to stay for a while until, months from now, I decided to change again.

    As I did once, it can be done. I just remember what I've done.

    Thank you.

    Hello

    Thanks for posting in the Microsoft Community Forum. Description, I appreciate that you try to change the font, size and color for the e-mails, rest assured that we will do our best to answer this question.

    Answer these questions that would help us to provide the best solution:

    What mail client do you use?

    Provide us with more information about the issue so that we can help you further.

Maybe you are looking for