Using Styles With the ComboBox

Hi --
I believe I have posted a question similar to this before,
but can someone
tell me how to go about styling a ComboBox via Actionscript
3?
I found this list for AS 2 in the help file:
alternatingRowColors, backgroundColor,
backgroundDisabledColor, borderStyle
color, disabledColor, embedFonts, fontFamily, fontSize,
fontStyle,
fontWeight, textAlign,
textDecoration, textIndent, defaultIcon, repeatDelay,
repeatInterval,
rollOverColor,
selectionColor, selectionDuration, selectionDisabledColor,
selectionEasing,
textRollOverColor,
textSelectedColor, useRollOver
However, when I tried this code:
testCombo.textField.setStyle("backgroundColor",0xcc00cc);
or
testCombo.dropdown.setRendererStyle("backgroundColor",0xcc00cc);
it didn't work.
Can someone tell me which of the items in the list above (if
any?) work with
AS 3 and what other options are also available?
Thanks
Rich

I believe setStyle is the method of the component
(UIComponent) - not it's children.
ComboBox.textField is a reference to the TextField of the
component. As such it seems like it should be styled with
methods/properties that TextField class has (setting StyleSheet,
etc.)
To get what elements of the component can be styled you can
use getStyleDefinition on the component.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/core/UIComponent.html#setStyl e()

Similar Messages

  • Using "Next style" with the same paragraph style for more than one paragraph

    Hi.
    I have been using paragraph styles with the "next style" option, it's a huge help. But I need a bit more. So I have the following paragraph structure: ABCCCABCCCAB...
    I defined paragraph styles for each kind of paragraph, then in paragraph style A, I added paragraph style B as the next style, and so on. However, when I get to paragraph style C I reach a dilemma. Should I define the next style as the same, or define three paragraph C styles (C1, C2 and C3), link them to each other with next style, and then loop the C3 style into the A style again?
    My hope is that there is a way, something like the nested style options, that allows me to define that style C should be used for 3 paragraphs and then the next style becomes style A again.
    Thanks.

    You just need two styles, almost identical, you can duplicate one.  The only
    difference is one has the next paragraph c and one has the next paragraph
    a.  After that I don't see the problem.

  • What is wrong with the ComboBox?

    What a nice Saturday it is...
    Why oh why won't a ComboBox show its selection when it's
    loaded in a parent movie? Do we have the same issue here as with
    the AS2 version? I tried putting a ComboBox in the parent but that
    doesn't work either.
    Functions as expected when I test the movie with the
    ComboBox, when I load that movie in a parent... no text on the
    ComboBox. The dropdown works ok, but once you have made a selection
    and the ComboBox closes again... no text. Anyone experienced
    this?

    it wouldn't matter whether the cb was added to the stage or
    using a.s. it would matter if you picked a unique instance name or
    not.
    with a non-unique name, the cb appears to be working but
    displays no text when closed. if you click the cb and open it,
    you'll see the text so you can make different selections. but if
    you click a selection, no text appears in the closed cb.

  • I purchased songs from 2 different computers using itunes with the same apple id. I had 1 iPod I used for these but I just recently got an iPhone and I was wondering why it wasn't letting me put my purchased songs on my iPhone?

    I purchased songs from 2 different computers using itunes with the same apple id. I had 1 iPod I used for these but I just recently got an iPhone and I was wondering why it wasn't letting me put my purchased songs on my iPhone?

    You can transfer iTunes content from an iTunes library on a single computer only.
    Since these songs were purchased with the same iTunes account, you can download the song that is not in your iTunes library on the computer you will be syncing your iPhone with. Or you can download the song or songs direct on your iPhone.
    http://support.apple.com/kb/HT2519?viewlocale=en_US&locale=en_US

  • Can I purchase an iphone3g and then use it with the apple golf app as a golf gps without having to be on a cell plan or data plan?

    If I purchase an iPhone 3g, can I then use it with the apple golf app without having cell or data service?

    You do not need have cell service for the GPS to work.
    If the iphone is new, then you would have to activate it with a carrier in order for it to work at all.
    If it is used, then you can use it without wireless service:
    Using an iPhone without a wireless service plan

  • I'm using mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts- I didn't have any problems with it before the upgrade and in safari I don't have this problem.

    Hello, I'm using Mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts… I didn't have any problems with it before the upgrade and in safari I have no problem with it. please help me- I don't like to use safari a my browser...

    elly903 wrote:
    Before commenting - I CANNOT install Mavericks because it'll mess up the versions of Filemaker Pro and Quicken that I use regularly...
    Quicken 2007 for Intel (Snow Leopard, Lion, Mt. Lion and Mavericks) for $15:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    It will input your Quicken PPC data file directly if it was Quicken 2005 through 2007.  If older you need Quicken 2006 or 2007 PPC first to convert your data file; and this update must be done BEFORE you upgrade to Mavericks:
    http://quicken.intuit.com/support/help/patching/quicken-2006-manual-updates--mac -/GEN82200.html
    Filemaker Pro PPC (in this case 7) running in Snow Leopard Server installed into Parallels for use in Lion, Mt. Lion and Mavericks:
                                  [click on image to enlarge]
    Snow Leopard Server: 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)
    This solution allows you to run your Photoshop Elements in Mavericks concurrently with Filemaker Pro PPC.  Mavericks is a free download.

  • I have purchased a eos 6d. When I use it with the iPhone app the connection dies after about five m

    I have a 6d and when I use it with the iPhone app the camera turns off after about five minutes and the connection is lost. So when I am photographing wild life I keep having to break cover to reactivate the connection. Is this correct or is there a way to keep the connection alive.

    You just need to go into the menu and set the camera's sleep mode to "off" or "never". It sounds as if it's currently set to 5 minutes.
    Letting the camera sit active continuously, i.e. preventing it from going into sleep mode, will drain the battery(ies) a lot faster. I don't have a 6D, nor do I leave them on full time (in fact I set sleep mode to a very short duration, since tapping any button on the camera quickly re-awakens it).... so I really don't know how quickly a battery will drain. But you might be prepared with spares. If battery life is too short for you purposes, you could add a battery grip which will double the battery capacity.
    Alan Myers
    San Jose, Calif., USA
    "Walk softly and carry a big lens."
    GEAR: 5DII, 7D(x2), 50D(x3), some other cameras, various lenses & accessories
    FLICKR & PRINTROOM 

  • I use lightroom with the soft proofing feature for my printing. I used to make a copy proof, but all of the sudden something changed, and even if I'm on the copy in the developing mode it prints the original. Also, If i chose a file that was already in li

    I use lightroom with the soft proofing feature for my printing. I used to make a copy proof, but all of the sudden something changed, and even if I'm on the copy in the developing mode it prints the original. Also, If i chose a file that was already in light room to print, even though I have the chosen file up in the developing mode, it will instead print the most recent file that I added to lightroom. If found a way to work around these problems, (check make this the copy in the soft proofing, and copy my settings and delete and reload the old files) but it's a slight hassle and it didn't use to do this. Not sure why it changed. Could I have accidentally changed a setting?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • How to use labview with the handyboard

    Hi,
    how to use labview with the handyboard
    Thx...

    I'm assuming you're talking about this, since you didn't provide a link for those of us who don't know what you're talking about.
    As the other poster said, you didn't say how you want to use LabVIEW with it.  If you want to write LabVIEW programs than run on the microprocessor, then you're out of luck.  If you want LabVIEW to interact with it, then you've got a couple of options, SPI probably being the best, but it also has DI and AI that you could use to communicate with it - the DI's could be used as a parallel interface.
    Message Edited by Matthew Kelton on 12-17-2007 02:21 PM

  • Passing values to an internal table and use it with the table painter

    Hi,
    I have seen this topic here before but the answers didn't help me. Maybe I,m doing something wrong.
    The problem is that I defined the following structure on the |Types| tab of the |Global Definitions| section:
    TYPES: BEGIN OF DETAILS,
           EBELP  TYPE EKPO-EBELP,
           BSMNG  TYPE EBAN-BSMNG,
           LFDAT  TYPE RM06P-LFDAT,
    END OF DETAILS.
    Then defined the following definition on the |Global Data| section:
    WA_DETAILS TYPE STANDARD TABLE OF DETAILS WITH HEADER LINE
    The problem is that when I try to assign a value to one of the fields in the program code like this:
    LOOP AT WA_EKPO.
         WA_DETAILS-EBELP = WA_EKPO-EBELP.
         WA_DETAILS-EMATN = WA_EKPO-EMATN.
         MODIFY WA_DETAILS.
    ENDLOOP.
    gives me the following error:
    "WA_DETAILS" is not an internal table -the "OCCURS n" specification is missing.
    Then if I add the "OCCURS 10" to the definition of the Global Data the error "OCCURS 10" is not expected.
    How can I define, assign values and use as a parameter an internal table defined with types for use it with the table painter?

    Hi,
    if it is one record in wa_details. you can directly write as follows..
    REPORT  ZCR_TEST1                               .
    TYPES: BEGIN OF details,
              ebelp TYPE ekpo-ebelp,
              bsmng TYPE eban-bsmng,
              lfdat TYPE rm06p-lfdat,
              ematn TYPE ekpo-ematn,
           END OF details.
    DATA: wa_details TYPE STANDARD TABLE OF details WITH HEADER LINE,
          wa_ekpo    TYPE STANDARD TABLE OF details WITH HEADER LINE.
    wa_details-ebelp = '1'.
    append wa_details.
    wa_ekpo-ebelp = '3'.
    append wa_ekpo.
    LOOP AT wa_ekpo.
      wa_ekpo-ebelp = wa_details-ebelp.
      wa_ekpo-ematn = wa_details-ematn.
      modify wa_ekpo.
    endloop.
    Normally it wont be one record, so u need to put <b>read statement with key</b> in LOOP and ENDLOOP.
    Regards,
    Sriram

  • Can you use IMAP with the ipads mail feature?

    Can you use IMAP with the ipads mail feature?

    Kappy,
    Yes, our domain and email accounts are on a server that does accept IMAP. Also, our mac mini and imacs are all set up for IMAP. Buying an ipad will enable me to work from home during this winter.
    Another ?: do you know if you can use text edit with the iPads mail feature? Reason being we have about 100 generic emails that all we have to do is change a few fields before sending out. Can this be integrated in without having to recreate all these messages?
    -TIM

  • ABAP interfaces build using BDC and BAPIs can be used/replaced with the XI?

    Hi,
      We have develeloped our interfases using BDC and BAPIs. Now our client has decited to implement XI. Now could you please help in finding whether these interfaces can be used/replaced with the XI.
          If yes, please let us know how?
    Thanks and Regards,
    Shweta

    Singh,
    Check this threads where they have discussed on how to use them with XI:
    import BAPI into XI
    Re: interface of xi with bapi
    Re: BDC
    Regards,
    ---Satish

  • HT2731 I am using ipad2 with the latest version. While trying to make a apple Id, In the payment information  cannot get the option of "none" what will I do. Please help.

    I am using ipad2 with the latest version. While trying to make a apple Id, In the payment information  cannot get the option of "none" what will I do. Please help.

    You are following the instructions on this page for creating a new account : http://support.apple.com/kb/HT2534 e.g. selecting a free app in the store and tapping on 'create Apple id' when 'buying' the app ? I've just tried it and it works for me

  • Iam using 3g with the software 4.1.2 .. my phone undergoing problems like .. struck, slow op-eration...      is this version supports 3g... or else wat should i do now to keep my phone safer and faster

    iam using 3g with the software 4.1.2 .. my phone undergoing problems like .. struck, slow op-eration... 
    is this version supports 3g... or else wat should i do now to keep my phone safer and faster

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • I own the first iPad. I've got a Camera Connection Kit. Can I used it with the first iPad.

    I own the first iPad. I've got a Camera Connection Kit. Can I used it with the first iPad.

    Yes, it's compatible with the first gen iPad - I use one with mine.

Maybe you are looking for

  • IMac G5 Sound Dropout

    Im having a very annoying problem with the sound output on my iMac frequently dropping out. Im using a USB Digidesign MBox 2 with speakers connected to it as my sound output and input device. Trouble is if im playing music in iTunes, or using another

  • Want to move RH Server 8 to 64 bit Windows 2008 Server R2

    Can someone please confirm what version of Windows 2008 Server that RoboHelp Server 8 will run on? The Server Admin group says that they have to replace the server on which RH Server 8 is currently running an end-of-line operating system (Windows 200

  • How to eliminate a ground loop with SCXI units

    I am using a SCXI chasis, the SCXI-1102 and 1303 and a 1602 USB interface.  these are connected to grounded thermocouples fixed to an experimental apparatus.  How do I eliminate the ground loop that forms when I power up my laptop (w/ 120V power) and

  • IPhone 4s 'ringer' icon stays on the screen and i can't get rid of it..?

    Hi, I have the new iPhone 4s but am finding that the mute o'ringer' icon stays on the screen and i can't get rid of it..! Which means it overshadows anything you are doing. Any ideas how to get rid of it? I have tried holding on/off and home button b

  • How to migrate Boot Camp Vista Partition to new Mac

    Hi there, I've been working with Vista on my iMac 24" (Core2Duo 2,8GHz 2007) using a Boot Camp partition. I'll be migrating to a 27" Quad-Core iMac soon. Does anybody out there know if there's a smooth and simple way to also migrate the Boot Camp Par