Changing Color of seekBar component

hi,
i m creating a video player, in which i m using control of
play, pause, seekbar etc.
i want to chnage the color of prograss of seekbar at runtime
as user select different color from colorPicker component.
and i know how to apply the color at runtime using colot
transfor class.
The problem is i m unable to refer the movieclip of seekbar
which contain the shape of pregrass.
and if entered the reference then it throug error.
i m using AS3.0 version. so please help me to how can i refer
the prograss shape inside of seekBar component to change the color
at runtime.
Thanks in Advance.

Once you drag it to the stage, look for it in your library.
When you open it from the library you can edit the appearance to be
whatever you want.

Similar Messages

  • ADF Faces - Change style for menuTab component

    How to change color for menuTab components (selected and enabled)?
    I do not want to create new style, all I need is just change some colors and fonts for default oracle style.
    I was able to change color for table, overridinf some styles in my css-file, but overriding
    <af_menuTabs_selected> and <af_menuTabs_enabled> did not work, because on generated html-page menuTab components do not use any styles. Is there any workaround to change color of that component?
    Thanks.

    public String commandButton_action() {
    ot_msg.setValue("Hello");
    AdfFacesContext.getCurrentInstance().addPartialTarget(ot_msg);
    The code above works fine but I nead also, in the method, to generate a excel file with JXLS librairie.
    The file can takes a long time to download and thus I want to change the value of outputText while the file is generating and not after.
    How can I do that ?
    Thanks

  • How to change color of selected label from list of labels?

    My Problem is that I have a list of labels. RowHeaderRenderer is a row header renderer for Jtable which is rendering list items and (labels).getListTableHeader() is a method to get the list. When we click on the label this code is executed:
    getListTableHeader().addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    if (e.getClickCount() >= 1)
    int index = getListTableHeader().locationToIndex(e.getPoint());
    try
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    AcknowledgeEvent ackEvent = new AcknowledgeEvent(
    this, (ae_AlertEventInfo)theAlerts.values().toArray()[index]);
    fireAcknowledgeEvent(ackEvent);
    ((HeaderListModel)listModel).setElementAt(ACK, index);
    catch(Exception ex) {;}
    Upon mouse click color of the label should be changed. For some period of time ie. Upto completion of fireAcknowledgeEvent(ackEvent);
    This statement is calling this method:
    public void handleAcknowledgeEvent(final AcknowledgeEvent event)
    boolean ackOk = false;
    int seqId = ((ae_AlertEventInfo)event.getAlertInfo()).sequenceId;
    if (((ae_AlertEventInfo)event.getAlertInfo()).ackRequiredFlag)
    try
    // perform call to inform server about acknowledgement.
    ackOk = serviceAdapter.acknowledge(seqId,
    theLogicalPosition, theUserName);
    catch(AdapterException aex)
    Log.error(getClass(), "handleAcknowledgeEvent()",
    "Error while calling serviceAdapter.acknowledge()", aex);
    ExceptionHandler.handleException(aex);
    else
    // Acknowledge not required...
    ackOk = true;
    //theQueue.buttonAcknowledge.setEnabled(false);
    final AlertEventQueue myQueue = theQueue;
    if (ackOk)
    Object popupObj = null;
    synchronized (mutex)
    if( hasBeenDismissed ) { return; }
    // mark alert event as acknowledged (simply reset ack req flag)
    ae_AlertEventInfo info;
    Iterator i = theAlerts.values().iterator();
    while (i.hasNext())
    info = (ae_AlertEventInfo) i.next();
    if (info.sequenceId == seqId)
    // even if ack wasn't required, doesn't hurt to set it
    // to false again. But it is important to prevent the
    // audible from playing again.
    info.ackRequiredFlag = false;
    info.alreadyPlayed = true;
    // internally uses the vector index so
    // process the queue acknowledge update within
    // the synchronize block.
    final ae_AlertEventInfo myAlertEventInfo = event.getAlertInfo();
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.acknowledge(myAlertEventInfo);
    myQueue.updateAcknowledgeButtonState();
    // here we should stop playing sound
    // if it is playing for this alert.
    int seqId1;
    if (theTonePlayer != null)
    seqId1 = theTonePlayer.getSequenceId();
    if (seqId1 == seqId)
    if (! theTonePlayer.isStopped())
    theTonePlayer.stopPlaying();
    theTonePlayer = null;
    // get reference to popup to be dismissed...
    // The dismiss must take place outside of
    // the mutex... otherwise threads potentially
    // hang (user hits "ok" and is waiting for the
    // mutex which is currently held by processing
    // for a "move to summary" transition message.
    // if the "dismiss" call in the transition
    // message were done within the mutex, it might
    // hang on the dispose method because the popup
    // is waiting for the mutex...
    // So call popup.dismiss() outside the mutex
    // in all cases.
    if(event.getSource() instanceof AlertEventPopup)
    popupObj = (AlertEventPopup)event.getSource();
    else
    popupObj = thePopups.get(event.getAlertInfo());
    thePopups.remove(event.getAlertInfo());
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    // search vector elements to determine icon color in main frame
    String color = getColor();
    fireUpdateEvent(new UpdateEvent(this, blinking, color));
    // Call dismiss outside of the mutex.
    if (popupObj !=null)
    if(popupObj instanceof AlertEventPopup)
    ((AlertEventPopup)popupObj).setModal(false);
    ((AlertEventPopup)popupObj).setVisible(false); // xyzzy
    ((AlertEventPopup)popupObj).dismiss();
    else
    // update feedback... ack failed
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.setInformationMessage("Acknowledge failed to reach server... try again");
    return;
    Code for RowHeaderRenderer is:
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
    JTable theTable = null;
    ImageIcon image = null;
    RowHeaderRenderer(JTable table)
    image = new ImageIcon(AlertEventQueue.class.getResource("images" + "/" + "alert.gif"));
    theTable = table;
    JTableHeader header = table.getTableHeader();
    setOpaque(true);
    setHorizontalAlignment(LEFT);
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    public Component getListCellRendererComponent( JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus)
    int level = 0;
    try
    level = Integer.parseInt(value.toString());
    catch(Exception e)
    level = 0;
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setHorizontalAlignment(JLabel.CENTER);
    this.setVerticalAlignment(JLabel.CENTER);
    setIcon(image);
    else
    setBorder(BorderFactory.createLineBorder(Color.gray));
    setText("");
    setIcon(null);
    return this;
    I tried but when i am clicking a particular label, the color of all labels in the List is being changed. So can you please assist me in changing color of only the label that is selected and the color must disappear after completion of Upto completion of fireAcknowledgeEvent(ackEvent);

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • Change colors to all components in a consistent way

    Is there a way to change color to all components of an application (or of a JFrame), such as all JButtons backgrounds, JFrame backgrounds etc.?
    I suppose i've to deal with UIManager defaults, but is there some facility, or some check-list to help achieve this task?.
    Thanks in advance
    Agostino

    Check out my ComponentMapper class. You could do it with this by running the mapper on the contentpane (and potentially the JMenuBar too if you like)
    You are welcome to use and modify this code but please don't change the package or take credit for it as your own work
    tjacobs.util.ComponentMapper
    ======================
    package tjacobs.util;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.TextComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.JTextComponent;
    public class ComponentMapper {
         public static interface MappedFunc {
              public void func(Component c);
         public static void map(Component c, MappedFunc func) {
              func.func(c);
              if (c instanceof Container) {
                   Container con = (Container)c;
                   int count = con.getComponentCount();
                   for (int i = 0; i < count; i++) {
                        map(con.getComponent(i), func);
         public static void main(String[] args) {
              JFileChooser fc = new JFileChooser();
              MappedFunc mf = new MappedFunc() {
                   public void func(Component c) {
                        if (c instanceof JTextComponent) {
                             System.out.println("found");
                             final JTextField tf = ((JTextField)c);
                             tf.setEditable(false);
                             tf.getDocument().addDocumentListener(new DocumentListener() {
                                  public void insertUpdate(DocumentEvent de) {
                                       Runnable r = new Runnable() {
                                            public void run() {
                                                 tf.setText("");
                                       SwingUtilities.invokeLater(r);
                                  public void removeUpdate(DocumentEvent de) {
                                  public void changedUpdate(DocumentEvent de) {
                             while (c != null) {
                                  System.out.println(c.getClass());
                                  c = c.getParent();
                             //disable the textfield
              map(fc, mf);
              fc.showSaveDialog(null);
    }

  • Changing colors

    How can I change color of the text and background of components like Output Text, Buttons etc?

    Thank you guys.
    However I have a few questions:
    1.How do I know what visual attributes each component has? Where can I intutively know that, e.g. a button has a color, background-color and all the other visual attributes? - basically where is the documentation for all this?
    2. How come I cannot edit these colors thru a "Graphical" color editor? ( This is what I need in the first place - not editing text in the stylesheet etc..
    3. If the colors are refered to by names, where is the list of well known color names( constants?).
    4. How do I set colors which have very specific r-g-b values ? Obviously this cannot be specified by a named constant.
    5. How do I set the color to transparent? ( i.e. how do I control the alpha component of the color? )
    This is also not possible using the only instance of graphical color editor I found ( to set the Background color of the Page ).
    The fact that color goes into the style property as a text string invalidates Visual design time experience by making an obvious property non obvious ( How would I know the color goes in Style?) and making changing it non intuitive - I have to remember color names and constants instead of seeing and selecting.
    I hope UI design team take a look at this in terms of design priciples and not just provide a workaround.

  • Changing color of Decorative Box

    Hi. I want to use a black decorative box, but I don't know how to change the color of this component. I only know how to change themes,
    Thanks.

    Hi,
    you use skinning. Here is the skin selector for the decorative box
    docs.oracle.com/cd/E28280_01/apirefs.1111/e15862/toc.htm#decorativeBox
    and here's the documentation about skinning
    http://docs.oracle.com/cd/E28280_01/web.1111/b31973/af_skin.htm#BAJFEFCJ
    Frank
    Ps.: Dependent on your JDeveloper version you have an integrated (11g R2 and 12c) or stand alone 11g R1 visual skin editor available. However, manual skinning works too

  • Adding a toolTip to FLV seekbar component

    Does anyone know how to add a toolTip to the FLV seekbar
    component? I have been banging my head against the wall far too
    long for something as simple as this...
    It's a quick an easy fix for the play/pause, stop buttons. I
    added in a movie clip that appears on the rollover state of the
    button. The seekBar is handled differently and there is not a
    rollover state in that component. I tried adding in an invisible
    movieClip over the handle that contains a my toolTip button. I feel
    like the code is blocked out and I can't get an AddEventListener to
    work within the component. I ran trace statements for willTrigger
    and hasEventListener and both came up positive for being able to
    handle a mouseEvent. I am not sure why this will not work.
    Any thoughts would GREATLY be appreciated.
    Thanks.
    descin

    To my knowledge, the rollOver event will not work if the clip
    is invisible. Instead, try changing it's alpha to 0. With it's
    alpha at 0, the clip will still appear invisible but the events
    will fire. This will present another problem though. When you click
    on the seek area to seek somewhere else in the movie, you'll
    actually be clicking on your alpha = 0 movieclip. So, if you want
    the clip to still seek, you'll have to add a seeking function
    yourself to a click event on your alpha = 0 movieclip.

  • Change color of AfCommandButton

    Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    Hello,
    i want to change the Color of a single button. I have this code in MySkin.css:
    .AFButtonBackground:alias{
    background-color: Purple;
    color: Aqua;
    But it changes color all the buttons. how to change the code? Can someone help me plaes?
    Thanks in advance
    Edited by: NewBB on 04-Nov-2010 06:29

    If the state of your button is different from the normal enabled state, then you should use one or more of the standard pseudo-classes :active, :busy, :disabled, :disabled:active, :hover or :hover-target, for example:
    af|commandButton.PurpleButton af|commandButton:disabled {
      background-color: Purple;
      color: Aqua;
    }Look at this great article for hints how to investigate what happens and what the correct selectors are:
    http://technology.amis.nl/blog/5722/using-adf-faces-11g-skinning-for-setting-the-styles-of-specific-component-instances-or-groups-of-instances
    Dimitar

  • Changing color and contrast before capturing analog video?

    Is it possible to change color (colorcast / saturation and contrast etcetera) before capturing analog video in Final Cut (software)? I have some old dv tapes I would like to upscale to hd and are considering to upscale via the super vhs outlet / connector on the camera through an I/O box (maybe Matrox).
    Do you loose much quality when compared to capturing from DV (digital capture)? I would like to make "a first generation" good capture.....

    You would need a capture card and a deck with built in controls, or an external TBC that works with compatible decks. Not every deck allows for this external control.
    S-VHS or component out would be lesser quality than straight DV capture via firewire. Via firewire it is lossless...straight digital capture. analog capture is a loss of quality. Capture as DV and then upscale with After Effects or Compressor...or get a DV deck with SDI out and capture with...oh, the Mini doesn't do SDI. You'd need the MXO2 LE for best quality capture. With your options, the best bet would be capture as DV and then use Compressor. Or spring for the Matrox MXO2 LE.
    Sorry, good quality costs...
    Shane

  • Why do I get a program error when changing colors?

    I get a 'Could not complete your request because of a program error' when I try to change colors on both the forground/background palette or from the color picker palette.  Is there a patch for this?
    I am using Photoshop CS6 version 13.0.1.x64

    Hi. Because this forum is for beginners trying to learn the basics of Photoshop, I'm moving your question to the Photoshop General Discussion forum.

  • Images Change Colors between monitors while the UI stays the same

    Hey! Im having an issue where photoshop changes the colors when I move the window between my monitors, seen here: http://sta.sh/04y5s60vf3j This isnt due to the monitors themselves being different, it actually changes after a few seconds of moving it inbetween the monitors. The left one has been callibrated with a spyder 3 elite which I no longer have access to. I applied the file with windows color management instead of the spyder utility. The second one is new, and it is not callibrated by anything, but instead was done by hand with the built in brightness/contrast/custom RGB settings. Both of them are very close to eachother, enough so for my tastes. but when photoshop changes what the image looks like, it's causing problems. Interestingly enough, when I disable callibration for the monitor on the left, the image does not change colors between monitors, but instead always appears as it does on the right. but then they don't match up and the whole screen looked washed out because it's uncallibrated, so that doesnt do me any good. Another interesting thing to point out, is when this image is saved as a .JPG, and viewed with firefox the image appears exactly like the monitor on the LEFT (which is my main monitor) despite the left monitor being the one that is force changed. does anyone have any suggestions? It also appears that windows photoviewer is behaving the same way, though firefox does not. Meaning when I open an image in all 3 on the left monitor, they look the same, but when opened on the right monitor, windows photo viewer and photoshop both display the image as brighter and redder than firefox does. This is frustrating, because it seems photoshop is changing the image with my callibration on my left monitor to match what it looks like on the web, which it does. but it doesn't do this for the right monitor, or when the left is uncallibrated. Another issue I can see with this is even if the UI is the same shade of gray, the images are different between the monitors because of this change. Does anyone have any suggestions?
    - BD

    Alright! So I reread through all this, poked at some things on the internet, and I'm going to attempt to summarize what would be a good solution for all this (And it seems, it still won't be perfect, but to get myself into the best environment I can for not messing with images for an hour trying to make them look nice before I post them to the web. I painted something yesterday on the cintiq, popped it over to my laptop screen and it just looked washed out and terrible.)
    1. Get a X-rite EODIS3 i1 Display Pro, Callibrate laptop and cintiq. I do have the money to drop on something like this, especially if it's a time saver.
         Things I'm not sure about:
              a. There was a ton of complaints about the software not working when I checked reviews, but also a ton that said everything was great. most of them were mac users though.
              b. I'm not sure if problems would still be posed, even while calibrated, by me having a wide gamut monitor.
              c. I'm a terrible excuse for a human being and I think the colors showing up brighter on the wide gamut screen is pretty (I should just make my images this bright on a normal screen and there won't be any issues. >.>)
    2. Set Firefox to color manage (easy enough)
    3. Change my photoshop working space to sRGB (since they'll have been calibrated at this point)
    3. Accept the fact that most of the people who look at my work will be doing so on a monitor that is almost certainly uncalibrated, and I can't control what they will see on my screen, but I CAN control if the colors are -actually- what I want them to be on any properly calibrated device. which is probably the best way to go anyways.
    4. Make paintings, have fun.
    Now, you two have been going on about all sorts of interesting things in here, and it seems that calibration issue run much much deeper than I ever thought. Do either of you have recommendations for how I should tweak this list of things to do or other things I can/ should do? I'm not currently a working professional, but if I have anything to say about it, I will be within a few years (I'm going to school for illustration and studying concept design on my own time) so it'd be useful for me to get into good habits now.
    - Brendavid

  • Can anyone tell me why a picture would change color when I try to download/upload it?  It is the exact same picture- chosen the same way and when it goes to any other program it changes the color (I've tried canvas on demand and mpixpro.  I've also tried

    Can anyone tell me why this picture changes color when I try to download/upload it?  It is the exact same picture I have taken from the same location.  The image on the left is via preview and the image on the right is what is shows like when I try to download it.  I have emailed it to myself and it shows fine on the computer and in CS4, but when I look at the download via my phone or on another computer it shows the wonky color on the right.  I have checked the color space shows RGB/8 bit.  Any ideas why or how to fix it?  It isn't with any one specific session.... and I've tried it on both my desktop and my laptop- saved image to an external hard drive and to drop box.  I've tried sending the image to canvas on demand, my email, mpxipro, POST editing- all the same result.  Please HELP!!  What am I doing wrong?

    Most of the time you see something like that. The image in question has a color profile other then sRGB. Some image viewers/displayers are color managed and others are not.  So the image do not look the same in all of the applications you use. So colors seem to change.
    Try converting it to sRGB color and see if then looks the same all around. Also I think PC and Mac displays are set to different gamma something like 1.8 and 2.2
    Though I'm colorblind I even see color variations.

  • Changing color without modifying existing items.. problem!

    Hello,
    I'm reletively new to flash, and am trying to modify a template and am running into a problem and I don't seem to know why Flash is acting so strange.
    I am going into a movie clip to edit the color of an item, and when I do so with a tint, it overrides any additional effects such as light, and text. The color appears almost as if it were just slapped on top of everything.
    When I edit the color in advanced mode, it is really a hit-or-miss to get the correct color, and will only modify when changing the offset RGB.
    And also when doing this, the text gradually changes color, for example: there are 4 items in total that I want to edit the color of. Each item is a different colored box with text on the front (for a main Navigation of the website). --- The first item, the text will stay white. Gradually through the second and third items it starts to change, and by the fourth / last item, the text is completely blue.
    Is it possible for a portion of text to be connected somehow to an object within the animation in a movieclip? If so, is it possible to go inside and edit this? -the shape, animation, and text?
    Is there an easier way to change the color of an item inside a movie clip? I can supply additional information if needed.. files etc.
    Am I doing something wrong / completely missing something?
    Thank you very much in advance for any help and/or advice!
    New Flasher,
    Lisa

    go one level deeper than the movieclip so you're editing the shape.

  • Change color in ALV top of page

    Hi all,
    Can anyone tell me how (if it is possible) to change color in ALV top-of-page?
    Thank you in advance,
    Hagit

    Hi,
    It is not possible to change the color in ALV top of page.
    Thanks,
    Sriram Ponna.

  • My macbook pro is freezing after my screen changes color

    My screen has been freezing a lot for some reason. I will be working on anything on the computer then all of a sudden the screen will become distorted and start to change colors then do a hard freeze. I have to hold down the power button and do a hard reset. Any suggestions on what this could be?
    Model Name:          MacBook Pro
    Model Identifier:          MacBookPro6,2
      Processor Name:          Intel Core i7
      Processor Speed:          2.66 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache (per Core):          256 KB
      L3 Cache:          4 MB
      Memory:          4 GB
      Processor Interconnect Speed:          4.8 GT/s

    MacBook Pro (15-inch, Mid 2010): Intermittent black screen or loss of video

Maybe you are looking for

  • I am trying to setup a role based database.

    Is there any documentation am new to LDAP on how to orginize my directory tree.

  • Install Windows 8 on HP 19-2113w All-in-One Desktop PC..

      Greetings.  I am starting a new job with Sykes as a virtual assistant.  They require Windows 8, but I have 8.1 pre-installed.  I have tried building a Windows 7 VM, but my PC does not have the speed. Plus, my product key is invalid.  Is there a leg

  • CC Apps for download not showing up in Applications Manager

    I would like to download additional CC applications (Photoshop and InDesign) however those options do not show up on my Adobe Applications Manager. Why are these two apps not showing up? I do not yet have them installed on my computer.

  • Writing a binary file

    Hi, I have trouble when writing a binary file. Here is what I do: I have some VI's collecting various data for a fixed period of time. I put all the data into 1D arrays at a fixed frequency (they all have the same size). Once it is done I merge all t

  • Magic trackpad cursor position trouble

    I'm finding that quite often after I position the cursor in a text field (like, say, anywhere in a text editor like TextWrangler or in xcode, or in the URL field of a browser, and then I start typing, the characters appear at the previous cursor posi