Flash CS5 How does one change background color in TextArea Component

I'm trying to change the background color of a TextArea Component.  Does anyone know how to do this?
function processXML(e:Event):void {
  var strTextBox:String;
  myText.visible=true;
  myText.setStyle("contentBackgroundColor", 0x000000);  //Does not work..nor does   myText.setStyle("backgroundColor",0x000000);
  myXML = new XML(e.target.data);
  strTextBox = "<a href='" + myXML.Branch[0].linkURL + "'> More Info...</a>";
  myText.htmlText=strTextBox;

for that one you have use styles:
var newFormat:TextFormat = new TextFormat;
   newFormat.bold = true;
   newFormat.size = 18;
   newFormat.color = 0xFFFFFF;  //I'm wanting white font on black background.
   //apply the format:
myText.setStyle("textFormat",newFormat);
   myText.visible=true;
  myText.textField.background=true;
  myText.textField.backgroundColor=0x000000;

Similar Messages

  • How can one change the color of JToolTip background

    how can one change the color of JToolTip background from Purple to user defined ? I am using setToolTipText() method to set the text required but here the background color of the ToolTip is Purple and i wish to change it to white.. how can i do it ?
    i tried to change the color by defining a seperate class JToolTip but i don't know how to set it with a JButton..
    can someone help..
    thanks in advance ..
    avinash

    How can I change the text size and font?Give a man a fish.... Check out UIManager.

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How does one change ownership of event?

    How does one change ownership of an event?
    We are running OCS 9.0.4.2 on redhat enterprise linux 3.0
    I have a calendar entry which I got from:
    mySess.fetchEventsByRange(Api.CSDK_FLAG_STREAM_NOT_MIME | Api.CSDK_FLAG_FETCH_EXCLUDE_DAILYNOTES |
    Api.CSDK_FLAG_FETCH_EXCLUDE_DAYEVENTS, hand, in_start, in_end, eventProp, result);
    BEGIN:VEVENT
    UID:20050620T151524Z-505dd-1-7af6ed32-Oracle
    ORGANIZER;X-ORACLE-GUID=FEA199DDB9763627E030378E793341C1;CN=old owner:mailto:old.owner@email
    DTSTART:20050801T120000Z
    DTEND:20050801T220000Z
    END:VEVENT
    So now I'm trying to save the event under the new owner using this:
    mySess.storeEvents(Api.CSDK_FLAG_STORE_MODIFY,event,result);
    where event reads as follows:
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//ORACLE//NONSGML CSDK 9.0.4.2//EN
    BEGIN:VEVENT
    UID:20050620T151524Z-505dd-1-7af6ed32-Oracle
    ORGANIZER;CN=new owner:mailto:new.owner@email
    DTSTART:20050805T120000Z
    DTEND:20050805T220000Z
    END:VEVENT
    END:VCALENDAR
    And i've run mySess.setIdentity to change to the old owner and new owner with no success?
    Please how does one change the owner of an event?

    The Calendar Sdk doesn't allow you to change the ownership of an event. (ORGANIZER value).
    Regards,
    Jean-Philippe

  • Safari on Windows. How does one change default spelling dictionary?

    How does one change the default spelling dictionary for Safari on Windows? For the Mac, it changes in response to the default locale, but on Windows, it just sets to American English and you cannot change it anywhere I can see. All my locale information in Windows is set to UK English.
    In fact on some websites, like this one, the spelling checker seems to be disabled! I'm on Windows 7 64-bit, BTW, running Safari 5.1.7
    Message was edited by: Grant Wray

    I think I just found the answer (though I don't know why the interface is buried this way). Find a word that the American spell check is flagging, right click on it, select Spelling and Grammar, and then select Show Spelling and Grammar. Make sure that the language listed at the bottom says British English (not my choice of what to call it, so please don't blame the messenger).

  • How do you change background color?

    How do you change background color in Pages?

    Make a rectangular shape the size of the page, color it and send to the background, save as a template.
    Peter

  • How does one delete background music and use ones own music instead

    How does one delete annoying background music and use ones own music instead in imovie

    Hi
    I have done exactly as you have said without success, the background music just keeps on playing even over my own choice of music.Perhaps I have unkowingly locked something out.
    Many thanks for trying to solve the problem
    F.F

  • How does one change library from 1,5 to 2,0?

    How does one transform 1.5 photo library to 2.0 library within Aperture 2.0?
    Thanks!

    Mitch Aunger wrote:
    and of course you have a backup of your library before you start... right???
    Of course - everyone uses Time Machine, right ?

  • How can I change background color of the cover in ibooks Author?

    I'm trying to change the color of the background of the cover of the iBook I'm creating. I can't find how to.
    Please help.
    Gaby

    Gaby -
    Click on Book Title, unlock it, delete.
    Select a square graphic, turn Object causes wrap off.
    Make the square any color you like.
    Enlarge it to cover the page.
    Send to back. Lock it down.
    That's it.
    Now go here and download this free book, Publishing With iBooks Author, from O'Reilly press.
    http://shop.oreilly.com/product/0636920025597.do?sortby=publicationDate
    - Fabe

  • How does one change the date format for PlayMemories Home folders?

    I am using PlayMemories Home Version 2.0.00.11271 and have many folders within it which contain only photographs imported from my Sony DSC-H9.  Unfortunately, PlayMemories Home insists upon dating all folders in a month/day/year manner; and this makes little sense if one wishes to have the folders listed in logical chronological order.  How can I change the date format to year/month/day?  Changing the name of each folder, one by one, will take a very long time!  Your helpful advice in this matter will be greatly appreciated.  Thank you. System information:
    Operating system: Microsoft Windows XP Professional
    Service pack : Service Pack 3
    Memory: 1.5 GB
    Processor:         Intel(R) Pentium(R) M processor 1.86GHz
    Max. clock speed: 1.86
    Manufacturer: IBM
    Model: 1847W76
    System language setting: English (United States)
    User language setting: English (United States) 

    I too thought that the folder naming format was obviously wrong and couldn't find a way to change it. I do agree that placing photos in folders according to when they were taken is a great idea. I had been considering writing some software to do just that. After discovering that PlayMemories does it, I had it re-import all my photos. Then I wrote a small Perl script to rename all of the folders into year-month-day format. Included here is the Perl script. It only acts on a single folder - use it on the root folder where all the PlayMemories folders are. It will rename all folders currently in a month-day-year format. I used it without problems but of course there is no guarentee that it is error free. This should work with any common version of Perl. Tom # There should be one command line argument: the directory to act upon
    if ( scalar(@ARGV) == 0 ){
     print "Usage: RenameDirs <dir>\n";
     print " Where dir is the directory containing the directories to rename.\n";
     exit;
    $mydir = $ARGV[0];
    chdir $mydir or die "Couldn't chdir to $mydir: $!";
    opendir(ROOTPHOTODIR, ".") or die "Failed to open the pictures directory $mydir: $!";
    @allphotodirs = readdir ROOTPHOTODIR;
    closedir ROOTPHOTODIR;
    foreach $dir (@allphotodirs) {
     if ( -d $dir ) {
      print "$dir is a directory";
      if ( $dir =~ /^(\d{1,2})-(\d{1,2})-(\d{4})$/ ) {
       print " and has the proper format: month $1 day $2 year $3 and will be renamed to ";
       $newname = sprintf "%4u-%02u-%02u", $3, $1, $2;
       print "$newname\n";
       rename $dir, $newname or die "failed to rename $dir to $newname: $!";
      else {
       print " but is not of the proper format\n"
     elsif ( -f $dir ) {
      print "$dir is a file\n";
     else {
      print "$dir is neither a directory nor a file\n";
    }

  • How can I change background color for a text field

    Hi I tried this
    style="BACKGROUND-COLOR:#00FFFF"
    working fine in IE
    but not working in Netscape.. any other way to set the background color?

    Netscape 4.x does not support this feature. Only Netscape 6.x does.

  • How does one change the folder to which scanned images are saved?

    Using a CanoScan 9000F Mark II scanner
    Using the ScanGear driver software that came with it
    Right now every time I scan something, it is automatically saved in "My Documents", and I have to drag and drop the file where I really want it to go. How do I change it so that the file is saved where I want it to go in the first place. Also, it is automatically assigning a file name so that I have to go to the file and change that to what I would like it to be too. How do I make it so that I can name the file before it gets saved. Neither do I see where it gives me the option to choose the format in which the file is saved; it is saving the files automatically as JPG, but I would like to save them as TIFF or BMP.
    These seem to be very standard options; so I don't know why I'm finding it so hard. I must be blind or something.
    Thank you for your time and assistance.

    Hello barbarossa,
    Great question!  You can change all these settings through the My Image Garden software.  The exact procedure will vary depending on the version of Windows you are using.
    If you are having any difficulty locating this software, feel free to visit the link below to let us know your operating system and we can follow-up with step-by-step directions.  Thanks! 
    http://www.usa.canon.com/cusa/consumer/standard_display/contact_us_consumer
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How can i change the color in textarea

    Hi to all, i am making the chat application in java , i want to show the client message in different color in text area , i have only one window which shows both client and server messages . i am sending you my program can u tell me how to change the color.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    public class cwDraft extends JFrame {
    static private JTextField enter;//user write text in this area
    private JTextField ip;
    static private JTextArea display;
         JButton b1;
         JButton connect;
    static String s=" ";
    static String s1=" ";
    static String s2=" ";
         static DatagramSocket socket;
         static DatagramPacket packet;
         cwDraft() {
              super("chat server");
              setSize(400, 300);
              Container c = getContentPane();
              //c.setLayout(new FlowLayout());-
              display=new JTextArea();
              display.setToolTipText("display area");
              c.add(new JScrollPane(display),BorderLayout.CENTER);
              ip=new JTextField("127.0.0.1",15);
              ip.setToolTipText("enter ip here");
              c.add(ip,BorderLayout.EAST);
              enter=new JTextField(30);
              enter.setToolTipText("enter message");
         c.add(enter,BorderLayout.NORTH);
              b1 = new JButton("Send");
              b1.setToolTipText("send message");
              b1.addActionListener(new B1Listener());
              connect=new JButton("connect");
              connect.setToolTipText("connect to other computer");
              c.add(connect,BorderLayout.SOUTH);
              connect.addActionListener(new ConnectListener() );
              //enter=new JTextField();
              c.add(b1,BorderLayout.WEST);
              show();
              addWindowListener(
              new WindowAdapter() {
              public void windowClosing(WindowEvent e) {
              System.exit(0);
         } // constructor
         public static void main(String[] args) {
              new cwDraft();
              try {
                   socket = new DatagramSocket(3082);
              } catch(Exception ex) {
                   ex.printStackTrace();
              do {
                   byte data[] = new byte[100];
                   packet = new DatagramPacket(data, data.length);
                   try {
                        socket.receive(packet);                    
                   //display.append(s2);
                   } catch(Exception ex) {
                        ex.printStackTrace();
                   s1 = new String(packet.getData(), 0, packet.getLength());
                   //System.out.println(s);
                   display.append(packet.getAddress() +"says"+ s1 +"\n");
              } while(true);     
         } // main
         private class B1Listener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                   s = enter.getText();          
                   byte data[] = s.getBytes();
                   try {
                   //     packet1 = new DatagramPacket(data, data.length);
                        packet = new DatagramPacket(data, data.length, InetAddress.getByName(ip.getText()), 3082);
                        socket.send(packet);
                        display.append(packet.getAddress() +"says"+ s +"\n");
                   } catch(Exception ex) {
                        ex.printStackTrace();
                   //enter.setText(s2);
              } // actionPerformed
         } // B1Listener
    private class ConnectListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
         //String s1=" ";
         byte data[]=s.getBytes();
         try {
                        packet = new DatagramPacket(data, data.length, InetAddress.getByName(ip.getText()), 3082);
                        display.append("connected to:" + packet.getAddress() +"\n");
    catch(Exception ex) {
                        ex.printStackTrace();
    } // class

    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.Color;
    public class MultiColouredText extends JFrame {
       public MultiColouredText() {
       StyledDocument doc = new DefaultStyledDocument();
       JTextPane pane = new JTextPane(doc);
       pane.setEditable(false);
       pane.setFont(new java.awt.Font("Verdana", 0 , 16));
       MutableAttributeSet mas = new SimpleAttributeSet();
          try {
             StyleConstants.setForeground(mas, Color.yellow);
             StyleConstants.setBackground(mas, Color.blue);
             doc.insertString(doc.getLength(), " Hello ", mas);
             StyleConstants.setForeground(mas, Color.blue);
             StyleConstants.setBackground(mas, Color.yellow);
             doc.insertString(doc.getLength(), " World ", mas);
             StyleConstants.setForeground(mas, Color.red);
             StyleConstants.setBackground(mas, Color.green);
             doc.insertString(doc.getLength(), " And ", mas);
             StyleConstants.setForeground(mas, Color.green);
             StyleConstants.setBackground(mas, Color.red);
             doc.insertString(doc.getLength(), " Farewell ", mas);
          catch (Exception ignore) {}
       getContentPane().add(pane);
       setSize(250,56);
       show();
       public static void main(String[] args) {
          new MultiColouredText();
    }

  • How does one change the login screen background

    I have changed my desktop background picture few weeks ago with a picture I took. recently I have changed it again to one of the default pictures in OS Yosemite.
    The problem is many times when I login to my computer, it shows the old picture I had instead of the one I currently set. I delete the old picture completely (from my hard drive and trash folder).
    I will appreciate any help!
    Thanks

    I checked the hard drive and could not find the picture. However, it is still appear on the login screen :\

  • How do I change background color to white when looking at single image?

    I know I can go to 'preferences' and choose white backgrounds but this changes only the background of the page that shows all my photos together. If I select one photo to view, the background turns to black again - as it does if I view an image at screen size. Can I change these backgrounds to white? I think black ***** the life out of images and makes them appear smaller and would prefer to always see my images against white, as in a book. Since I work with images and colours this is very important to me.

    As I’m sure you recall from your careful reading of the Terms of Service you agreed to when you joined the Apple Discussions, this is a User to User forum. Apple aren’t here. They don’t promise to read anything here. If you want to ask Apple something you’ll need to do it elsewhere.
    Regards
    TD

Maybe you are looking for