How can I change < mx:Label > < / Label > using css?

Dear Experts,

It's funny that < mx:Label > < / mx:Label > is not property to change the background color.

Does anyone know how I can change the < mx:Label > < / Label > using css?

Kind regards

Pak Hong, Dave man

[email protected]

I think that you have set the backgroundcolor for label Flex4...? In Flex3 doesn' is used to define the background color directly... However, you can use this work around if you want to set the background color.

You can also set the color for textField in the code below using the textField styleSheet property.

<>

"xmlns:MX ="http://www.adobe.com/2006/mxml"layout ="absolute"creationComplete =" applyBGtoLabel () ">

Import mx.controls.Text;

private function applyBGtoLabel():void

{

var textField:TextField = new TextField();

textField = myLabel.mx_internal::getTextField();

textField.background =

true;

textField.backgroundColor = 0xFF0000;

}

]]>

<>

ID = "myLabel" text = "" apply a background color for me... Please "height ="25"/ >"

Thank you

Jean Claude Chari.S

Tags: Flex

Similar Questions

  • How can I change my BB10 project uses a makefile?

    I recently created a new Blackberry Momentics project and it works fine from the IDE, but I need to be able to build the command-line with a Makefile. I ran 'make' in the Terminal, but encountered an error because the Makefile does not exist.

    I checked the sample applications I have been watching, and they have all of the makefiles. I found a few sources that say you can choose whether you use a managed version or a makefile when you create the project, but I have not found any this option in the latest version of Momentics (2.1). I tried to change this setting in the properties for the project, but the constructor parameters of generation slot C/C++ are grayed out.

    How can I change my BB10 project uses a makefile? If this is not possible, how can I require a new project to use a Makefile rather than a managed build?

    I realized that my problem was a little more specific than I thought, as happens only in OSX while trying to use a Makefile for a native Core project.

    I posted my solution on Stack Overflow, here: http://stackoverflow.com/questions/25192787/how-can-i-change-my-bb10-project-to-use-a-makefile/25333...

  • How can I change the settings to use wds Explorer format NO libraries - man of my file were not placed there by vista

    I have over 300 photos, 150 + documents, large files of Family TreeMaker large and reports for five separate families. Of course, there are some thecomputer file uses. And a number of files of daily use.
    LIBRARIES do not contain all these files - the only way I get to the file are not not in the library is to use Windows Explorer, and who does not always show the genealogy reports.
    Only about a quarter of my photos were listed in the picture library.
    The Stands of Question - how can I change the settings to get rid of the LIBRARY format and return to a format similar to or is Winows Explorer?
    AND the second Question, use the list of records, no libraries, wen I move to Windows 7 and Family Tree Maker 2012 once the computer is repaired?

    Hello

    1. Please let us know which Antivirus are you using?

    You can disable the libraries in Windows 7. Please visit the following link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/turning-off-libraries-in-Windows-7/18d001dc-5319-440b-B29C-d348f81c929c

    It is not possible to delete libraries. Libraries are part of both Windows Vista and Windows 7 operating system.  You can still navigate through your files on the computer--> C :\-> users-> .

    Please visit the following link:

    http://TechNet.Microsoft.com/en-us/library/ee449413 (WS.10) .aspx

  • How can we change the labels of fields in the query of the adf please?

    Hello, I would like to change the labels field in a query of the adf, as they were created by default by oracle.

    The only found code is:

    <af:query id="qryId1" rows="6" headerText="Search" disclosed="true" maxColumns="2"
                                value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                                model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                                queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}">
                        <af:inputText value="#{bindings.PrtDesc.inputValue}" label="Desc"
                                      required="#{bindings.PrtDesc.hints.mandatory}"
                                      columns="#{bindings.PrtDesc.hints.displayWidth}"
                                      maximumLength="#{bindings.PrtDesc.hints.precision}"
                                      shortDesc="#{bindings.PrtDesc.hints.tooltip}" id="it3">
                          <f:validator binding="#{bindings.PrtDesc.validator}"/>
                        </af:inputText>
                      </af:query>
    

    Hello

    If you use ADF BC, set flags of the UI on the attributes of the View object for attributes and these will make labels

    Frank

  • How can I change the dictionary I use?

    I already had to add words to the dictionary by using the spell checker but would go the dictionary and previously to add a lot of words, I know I will use.
    I use the Australian Dictionary. Can I change it?

    You cannot change the dictionary. aus, but you can change the personal dictionary, to which you have already done some additions:

    http://KB.mozillazine.org/dictionaries#Personal_dictionary

  • How can I change the calendar Gregorian, using the locale "th_TH"?

    We use the flasg.globalization.DateTimeFormatter to format our dates and it works like charm.

    The date appears as this 4/10/2556, which is OK because most of the people seem to use the Buddhist in Thailand (local th_TH). But unfortunately our client wants to display the Gregorian time for these pepole, too...

    So I would like to know, how to get rid of this shift! Does anyone have any idea?

    Yours,

    ULI

    Finally, the solution is very simple:

    You can use "th_TH@calendar=gregorian" instead of "th_TH" while initilaizing the DateTimeFormatter!

  • How can I change an application to use another library with a different name but the same name for public (easily)?

    When you perform comparisons between the programming approaches I create two libs with the same public calls but different internal components. Nothing special there. Unfortunately when I pass my test app to a lib to another, the application loader asks an all audiences of vi. But I thought I read somewhere that the application loader would get the idea where to look after that I saw the first public call to the new lib. Doesn't seem to work. With the help of 2010.

    Pull the lib not used out of the machine. Rename the current library under the same name that you used. Project save everything. Close to LabVIEW. Remove the current lib. Copy the another lib to the machine. Not necessarily easy but here's how I did similar exercises in the past.

  • How can I change my photos and use a function of type "facelift"?

    I need to work out the details on the photo using a type of 'lift' feature. Adobe has a tool that I can use?

    Thank you

    It would be the fluidity or Puppet Warp.

    Using Photoshop | Liquefy filter

  • How can I change the color of the label?

    Hi all
    We have a unique list of text items. How can I change the color of the label for these items based on a condition? I can't change the color of the default label. Most puzzled.

    Any help would be greatly appreciated.

    Thank you

    In the wording (in the section Label ) of an element field:

     Label Name 
    

    I don't know if you are able to do so under certain conditions, however.

  • When I place an icon on the home screen, can I change the label?

    When I place an icon on the home screen using firefox for android on my tablet from Samsung, the label is inserted for me. How can I change

    The easiest way is probably in bookmarks the page that you are willing to have the icon and by changing the name of the bookmark by pressing on long, long press again to add it to your screen.

  • PLEASE, I BEG YOU! How can I have a label dynamically see the current user loggedin FirstName and LastName in my database?

    I have a HBox that becomes visible when a user is valid. The HBox contains a logout button, and a label. How can I get the label dynamically see the current user loggedin FirstName and LastName in my database? Below, I have included my element HBox and ColdFusion. ANY helpwould be appreciated!



    < < < < < < MY component LoginHBox.mxml starts HERE > > > > > > >
    < mx:HBox
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    Width = '100% '.
    height = "28".
    horizontalAlign = "right."
    verticalAlign = "middle".
    paddingRight = "10" >

    "" < mx:Script source = "... / actionScript/logout.as" / >

    <!-App connects to ColdFusion using Flash Remoting STARTS->
    < mx:RemoteObject
    ID = "cfService_LoginCFC".
    destination = "ColdFusion".
    source="WebsiteApplication.CFC.LoginCFC"/ >
    <!-App connects to ColdFusion using Flash Remoting END->

    < mx:Label id = "welcomeLabel".
    Text = "Welcome"... "/ > < < < < HOW can I get the text dynamically see the users registered in FirstName and LastName?

    <! - logoutResultHandler() of the points of function in the file logout.as - >
    < mx:Button id = "logoutButton.
    label = "Log" Out
    Click = "logoutResultHandler ()" / >

    < / mx:HBox >
    < < < < < < MY component LoginHBox.mxml ends HERE > > > > > > >



    < < < < < < MY component LoginCFC.cfc starts HERE > > > > > > >
    < cfproperty >

    <!-function loginUser STARTS->
    < name cffunction = "loginUser" access = "remote" returntype = "WebsiteApplication.cfc.UserCFC" >
    < cfargument = 'user name' name type = "string" required = "true" >
    < name cfargument = "password" type = "string" required = "true" >

    <!-the default user is not logged in->
    < cfset var user = createObject ("component", "UserCFC") >

    < cfquery name = "loginQuery" dataSource = "TheChurchOnFire" >
    SELECT the name of user, password, AccessLevelID, FirstName, LastName
    FROM dbo. MembershipInfo
    WHERE
    Username = "#username #
    AND password = ' #password #
    < / cfquery >
    <!-the cfif instructionsuivante is absolutely fundamental in the achievement of the
    fully functional authentication-> process
    < cfif EQ loginQuery.Username ' #username # ' loginQuery.Password AND EQ ' #password # ' >
    < cfset user .loggedin = true >
    < cfset user .username = "#username #" >
    < cfset user .roles = "#loginQuery.AccessLevelID #" >
    < cfreturn user >
    < cfelseif > #username # EQ 'username' AND #password # EQ 'password '.
    < cfset user .loggedin = true >
    < cfset user .username = "#username #" >
    < cfset user .roles = "6" >
    < cfreturn user >
    < cfelse >
    < cfreturn user >
    < / cfif >

    < / cffunction >
    <! - function loginUser ENDS - >

    < / cfproperty >
    < < < < < < MY component LoginCFC.cfc ends HERE > > > > > > >

    Thank you

    John

    I finally thought to it! PRAISE BE TO GOD!

    I had to add...

    welcomeLabel.text ='Welcome, you are currently logged in as + currentUser.fullname + '!';

    .. .for my loginResultHandler.

    function loginResultHandler
    private void loginResultHandler(event:ResultEvent):void
    {
    currentUser = event.result as a user;
    If (currentUser.loggedIn)
    {
    If successful login
    If (currentUser.roles == '5')
    {
    this.currentState = 'Youth';
    welcomeLabel.text ='Welcome, you are currently logged in as + currentUser.fullname + '!';
    }
    Else if (currentUser.roles == '4')
    {
    this.currentState = 'Member';
    welcomeLabel.text ='Welcome, you are currently logged in as + currentUser.fullname + '!';
    }
    Else if (currentUser.roles == '3')
    {
    this.currentState = 'PowerMember';
    welcomeLabel.text ='Welcome, you are currently logged in as + currentUser.fullname + '!';
    }
    Else if (currentUser.roles == '2')
    {
    this.currentState = 'AssistantAdministrator';
    welcomeLabel.text ='Welcome, you are currently logged in as + currentUser.fullname + '!';
    }
    Else if (currentUser.roles == '1')
    {
    this.currentState = 'SeniorAdministrator';
    welcomeLabel.text ='Welcome, you are currently logged in as + currentUser.fullname + '!';
    }
    on the other
    {
    currentUser.roles == "6";
    this.currentState = 'Visitor';
    welcomeLabel.text = 'Welcome, you are currently logged in as visitor!';
    }
    }
    on the other
    {
    If unsuccessful login
    Alert.Show ("unsuccessful Login", "Server authentication");
    }
    }

    Michael_ramirez44 thanks for your help!

    John

  • I have an Apple gift card account and want to use it, but I always get sent to my account where the payment is listed as a Visa card I have more. How can I change the billing to my gift card, I no longer the card and do not know the pin code

    How can I change my payment with a Visa card, I no longer use my gift card account. I don't have the gift card so I don't know the PIN code. I have the amount of the card on account, what should I do?

    Hi Nancy, there.

    Looks like you are trying to update your iTunes billing information, but he continues to ask you for a credit card security code, you have more. You may be able to change the option to zero rather than use the "Use your Mac or PC" section of this article:

    Modify or delete your Apple ID payment information

    If for some reason you can't, this article explains why this may be the case:

    If you don't see anything or can't select

    You may need to reach out to our iTunes support staff directly if you cannot get a resolution with these resources:

    the iTunes Store support

    Thank you for using communities of Apple Support.

  • THUNDERBIRD USES INTERNET EXPLORER TO OPEN MAIL. HOW CAN I CHANGE IT RATHER USE GOOGLE CHROME

    THUNDERBIRD USING 'INTERNET EXPLORER' TO OPEN THINGS IN MY MAIL. HOW CAN I CHANGE TO OPEN WITH 'GOOGLE CHROME' AT LA PLACE?

    Thunderbird uses the browser you have set as default. Try to make Chrome the default browser.

  • Devices on all my iCloud preferences says "this device can be used to receive codes of audit ID Apple." How can I change this if at least one, if not several, can receive the verification code?

    Devices on all my iCloud preferences says "this device can be used to receive codes of audit ID Apple." How can I change this if at least one, if not several, can receive the verification code?

    Try to go here and see if you can add them to your Apple ID.

  • I changed my password of gmail e-mail. How can I change the password used by Thunderbird to connect to gmail.

    I changed the password used to access my gmail account. Thunderbird still uses the old password to access the account. How can I change the password that is using Thunderbird. The last time this happened I ended up creating a new account to Thunderbird for gmail. Create the new Thunderbird account at least let me enter the new password. I don't really want to have three accounts of Thunderbird for the same gmail account.

    Please do not respond with suggestions on using password manager. I do not use it and do not want to start. I looked, and none of my Thunderbird passwords are displayed here. All I want to do is change the password in Thunderbird. If Thunderbird does not have a feature that allows you to change passwords, should be added.

    The link posted by Christ1 gives WRONG directions. In Thunderbird 24.4.0, is:
    Tools, Options, security, passwords, saved passwords

    Admittedly, in fact, you want that he SHOWS you the passwords, and then you can delete them.
    Once fact you check for mail, it will tell you, it didn't, and then you have the option to enter a new password.
    MUCH too complicated. Time to put the password and the ability to change, in the e-mail account options.

Maybe you are looking for