Using the color picker component to change background is coving up the rest of the elements

Hello,
I am trying to learn some scripting for components.
I have a bunch of stuff working and I got the color picker component to change the color of a movie clip and another one to change the text color.
I have another script that does the background color, but, when I use it with this script, it covers up the other components.
How can I use the color picker to change the background color of the stage without covering up the the movie elements?
Here are the two scripts:
script one-works fine on the 2 elements it is targeting
import fl.events.*;
import fl.events.ColorPickerEvent;
myColPic.addEventListener(ColorPickerEvent.CHANGE,changeHandler);
function changeHandler(event:ColorPickerEvent):void {
    var colorInfo:ColorTransform = new ColorTransform;
    colorInfo.color = event.color;
    myBox.transform.colorTransform = colorInfo;
    trace(event.target.hexValue);
myTextPic.addEventListener(ColorPickerEvent.CHANGE,changeText);
function changeText(event:ColorPickerEvent):void {
    var colorTypeInfo:ColorTransform = new ColorTransform;
    colorTypeInfo.color = event.color;
    myType.transform.colorTransform = colorTypeInfo;
    trace(event.target.hexValue);
Script 2-works fine in an empty movie, but if I add it to the script above, those elements get hidden..
import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
var bg:Sprite = new Sprite();
bg.graphics.beginFill(0x000000);
bg.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
bg.graphics.endFill();
addChild(bg);
var colorPicker:ColorPicker = new ColorPicker();
colorPicker.addEventListener(ColorPickerEvent.CHANGE, colorPicker_change);
colorPicker.move(10, 10);
addChild(colorPicker);
function colorPicker_change(evt:ColorPickerEvent):void {
    bg.graphics.beginFill(evt.color);
    bg.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
    bg.graphics.endFill();
Granted, I they are changing colors differently, but I am not sure how to change the stage color any other way with this component.
any thoughts out there?
thanks
babs

Thanks kglad!!!
that did it

Similar Messages

  • When I change my TIFFs to jpegs, the color and tone are changing as well [was: Need help please!]

    When I change my TIFFs to jpegs, the color and tone are changing as well, any ideas as to what the problem could be?

    You are screwing up the colors by not using color management or at least not keeping an eye what color space/ profiel your source files use anbd what happens when Safe for Web converts them. As a start, perhaps refer to this, then work your way through the Internet wide and far to learn about color management:
    Common Photoshop Issues
    Mylenium

  • How do I use the color picker in Photoshop CC it will not pull in my swatches and how do I change swatches to another pallet from pantone?

    How do I make the color picker work in Photoshop CC? It will not pull in my new swatch colors it just uses old pantone swatches?

  • Book Module Lightroom 4 -- can I use a color picker to pick a color from a photo to use as the backg

    I am trying to match a background color for a page in a Blurb book using the Lightroom 4 Book Module.  Is there any way I can use the color picker to pick a color from the photo to use as the color for the background and as the type color?  I see the color box for these situations, but the color picker only seems to work with the color array that pops up and doesn't go to the photo.  Any suggestions?  Am I overlooking something very obvious?

    It works for me.
    The usual Lightroom way: click the eyedropper onto the color palette first, then hold and drag to your photo to sample color.

  • Photoshop cs5 crash when using the color picker since Yosemite update

    Hello,
    I have photoshop crashing when I use the color picker outside the canvas, like on the black background. I got this problem since I upgraded my mac with Yosemite. I got this issue on my Imac and my Macbook pro. My version of Photoshop cs3 don't have this problem.
    Is there any upgrade soon for photoshop cs5 to solve this issue? It looked online and I am not the only one with this problem.
    After paying 800$ for cs3 and 250$ for cs5 upgrade, I don't want to pay again for the cloud version.
    Thanks,
    Martin

    adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 4053396
    3   com.adobe.Photoshop           0x00000001006bd842 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 4068262
    4   com.adobe.Photoshop           0x00000001006bdc99 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 4069373
    5   com.adobe.Photoshop           0x000000010038ba51 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 718261
    6   com.adobe.Photoshop           0x0000000100df2ab4 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 11626008
    7   com.adobe.Photoshop           0x00000001000c4d32 0x100000000 + 806194
    8   com.adobe.Photoshop           0x00000001000c4be9 0x100000000 + 805865
    9   com.adobe.Photoshop           0x00000001000c4be9 0x100000000 + 805865
    10  com.adobe.Photoshop           0x00000001000c4be9 0x100000000 + 805865
    11  com.adobe.Photoshop           0x00000001000c4be9 0x100000000 + 805865
    12  com.adobe.Photoshop           0x00000001000c4be9 0x100000000 + 805865
    13  com.adobe.Photoshop           0x00000001000c4be9 0x100000000 + 805865
    14  com.adobe.Photoshop           0x00000001000c9fb9 0x100000000 + 827321
    15  com.adobe.Photoshop           0x0000000100cdf3f8 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 10497884
    16  com.adobe.Photoshop           0x0000000100cdb13e AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 10480802
    17  com.adobe.Photoshop           0x00000001000677e1 0x100000000 + 423905
    18  com.adobe.Photoshop           0x00000001006b099a AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 4015358
    19  com.adobe.Photoshop           0x00000001000679e4 0x100000000 + 424420
    20  com.adobe.Photoshop           0x0000000100065f1b 0x100000000 + 417563
    21  com.adobe.Photoshop           0x00000001012dba1e AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16774530
    22  com.adobe.Photoshop           0x00000001012d4411 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16744309
    23  com.apple.AppKit              0x00007fff8fed2f4f -[NSWindow _reallySendEvent:] + 12827
    24  com.apple.AppKit              0x00007fff8f95d50c -[NSWindow sendEvent:] + 368
    25  com.adobe.owl                 0x0000000103687f55 OWLRemoveObjCExceptionCallback + 617
    26  com.adobe.owl                 0x0000000103689fa4 OWLRemoveObjCExceptionCallback + 8888
    27  com.apple.AppKit              0x00007fff8f90f096 -[NSApplication sendEvent:] + 2238
    28  com.adobe.Photoshop           0x00000001012e242e AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16801682
    29  com.adobe.Photoshop           0x00000001012e1be1 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16799557
    30  com.apple.AppKit              0x00007fff8f79be98 -[NSApplication run] + 711
    31  com.adobe.Photoshop           0x00000001012e04a4 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16793608
    32  com.adobe.Photoshop           0x00000001012e0f01 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16796261
    33  com.adobe.Photoshop           0x00000001000682e6 0x100000000 + 426726
    34  com.adobe.Photoshop           0x00000001002371f1 0x100000000 + 2322929
    35  com.adobe.Photoshop           0x0000000100237281 0x100000000 + 2323073
    36  com.adobe.Photoshop           0x00000001000022f4 0x100000000 + 8948
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib        0x00007fff8cbb622e kevent64 + 10
    1   libdispatch.dylib             0x00007fff8af53a6a _dispatch_mgr_thread + 52
    Thread 2:
    0   libsystem_kernel.dylib        0x00007fff8cbb5946 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f5564a1 start_wqthread + 13
    Thread 3:
    0   libsystem_kernel.dylib        0x00007fff8cbb5946 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f5564a1 start_wqthread + 13
    Thread 4:
    0   libsystem_kernel.dylib        0x00007fff8cbb5946 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f5564a1 start_wqthread + 13
    Thread 5:
    0   libsystem_kernel.dylib        0x00007fff8cbb5946 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f5564a1 start_wqthread + 13
    Thread 6:
    0   libsystem_kernel.dylib        0x00007fff8cbb5132 __psynch_cvwait + 10
    1   com.adobe.amt.services        0x000000010a9e3c53 AMTConditionLock::LockWhenCondition(int) + 37
    2   com.adobe.amt.services        0x000000010a9dccce _AMTThreadedPCDService::PCDThreadWorker(_AMTThreadedPCDService*) + 92
    3   com.adobe.amt.services        0x000000010a9e3cbe AMTThread::Worker(void*) + 28
    4   libsystem_pthread.dylib       0x00007fff8f5582fc _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff8f558279 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff8f5564b1 thread_start + 13
    Thread 7:
    0   libsystem_kernel.dylib        0x00007fff8cbb5946 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x00007fff8f5564a1 start_wqthread + 13
    Thread 8:
    0   libsystem_kernel.dylib        0x00007fff8cbb0582 semaphore_timedwait_trap + 10
    1   com.apple.CoreServices.CarbonCore 0x00007fff961bc658 MPWaitOnSemaphore + 87
    2   MultiProcessor Support        0x0000000110666b93 ThreadFunction(void*) + 69
    3   com.apple.CoreServices.CarbonCore 0x00007fff961bc904 PrivateMPEntryPoint + 58
    4   libsystem_pthread.dylib       0x00007fff8f5582fc _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff8f558279 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff8f5564b1 thread_start + 13
    Thread 9:
    0   libsystem_kernel.dylib        0x00007fff8cbb0582 semaphore_timedwait_trap + 10
    1   com.apple.CoreServices.CarbonCore 0x00007fff961bc658 MPWaitOnSemaphore + 87
    2   MultiProcessor Support        0x0000000110666b93 ThreadFunction(void*) + 69
    3   com.apple.CoreServices.CarbonCore 0x00007fff961bc904 PrivateMPEntryPoint + 58
    4   libsystem_pthread.dylib       0x00007fff8f5582fc _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff8f558279 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff8f5564b1 thread_start + 13
    Thread 10:
    0   libsystem_kernel.dylib        0x00007fff8cbb0582 semaphore_timedwait_trap + 10
    1   com.apple.CoreServices.CarbonCore 0x00007fff961bc658 MPWaitOnSemaphore + 87
    2   MultiProcessor Support        0x0000000110666b93 ThreadFunction(void*) + 69
    3   com.apple.CoreServices.CarbonCore 0x00007fff961bc904 PrivateMPEntryPoint + 58
    4   libsystem_pthread.dylib       0x00007fff8f5582fc _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff8f558279 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff8f5564b1 thread_start + 13

  • Color Picker won't change the color properly?

    Hi guys,
    I have a weird issue with the color. When I changed the color from dark green to bright lime green on Color Picker. The Color Picker show the specific color I want and then I click "OK". It did not change the dark green to bright lime green... instead it show the dull green color. It is really bugging me because I can't figured it what wrong with it. I checked the Color Mode (RGB mode) and Color Setting... everything seems to be right to me.
    Here is the quick screenshot:
    I also tested with other color, it still have the same problem. They won't show the bright color, it show the dull color instead.
    I hope you guys can help me out!
    Thanks,
    Christie

    OK, a few more thought on this.
    Here's what I did and everyone can check for themselves. I made a screen capture of the Color picker and paste it in a RGB and also a CMYK document as shown on the images below. In the CMYK document this converts the RGB color values of the screen capture into the CMYK color space of the document and the colors in the palette are displayed within the document's gamut. If you take the eyedropper and click on any color of the palette on the image you will never get out of gamut colors and this is how they should be displayed in the real Color Picker. The Color picker can still display in a little box out of gamut color if they are selected numerically using the RGB or HSB models but the point is that the display of the palette should be converted to a CMYK color space.
    In the RGB document on the second image, like in the real picker, clicking on the palette with the eyedropper will give a lot of out of gamut colors.
    Now thinking about out of gamut colors. Illustrator decides what is out of gamut colors by comparing the color space of a CMYK document to the working RGB  color space set in the Color Settings and for an RGB document to the  working CMYK space in the Color Settings. But this is not practical all the time because it is one way only from RGB to CMYK and can not be set from CMYK to RGB, RGB to RGB, and CMYK to CMYK.
    CMYK to RGB example: you may have a  document with U.S Web Coated (SWOP) v2 color space and one of its destinations is an sRGB color space. Because you can't set CMYK to RGB for out of gamut consideration, Illustrator will consider out of gamut all sRGB colors that are outside the U.S Web Coated (SWOP) v2 color space. But in this case your destination is sRGB and all colors from the sRGB color space should be presented in gamut and there is actually a small part of the U.S Web Coated (SWOP) v2 colors that are outside of the sRGB color space and only these colors should be shown as out of gamut.
    RGB to RGB example: your document is set in Adobe RGB color space because it will be eventually printed to several RGB printers some of which may have narrower gamut than the document. Then you want to set Illustrator to display out of gamut only the colors in the Adobe RGB color space that the RGB printer can't print, but unfortunately this is not possible even if you have the color profile of the printer.
    CMYK to CMYK example: you may have a  document with U.S Web Coated (SWOP) v2 color space but one of its destinations is U.S Web Uncoated v2, or US Newsprint, again not possible.
    So, in all these examples, the out of gamut colors Illustrator gives in the Color picker and panel are completely useless. Of course the major tool for these tasks remains the soft proofing which is working properly but why not make the out of gamut colors in the Color picker and panel work better and make more sense.

  • How to change the color picker/color space view?

    I wanted to change the color picker/color space view to what it looks like in the other Adobe programs. I have gotten used to using the color picker from the other programs and I have had problems with the look and function of this color view.
    In InDesign the color picker looks like this:
    And the Photoshop/Illustrator/etc. looks like this:
    I've tried changing the "Convert To Profile..." and the Transparency Blend Space, but neither have done anything to what I want to be done.
    Is there some way to change this in InDesign?
    Note: I want to change the looks of the gradient-like area if that isn't obvious.

    I was wanting to do the same change as you, until I saw your two images.
    Within the InDesign image you've selected a dark blue colour (R:16, G:49, B:152)  AND you've got the (R)ed channel selected.
    Within the Photoshop image you've selected a white colour(R:255, G:255, B:255)  AND you've got the (H)ue channel selected.
    In Photoshop I can recreate both of your images by having the same settings for RGB/CMYK and selecting the same channel item as you have in those images.
    That's all.
    There is no difference between the two colour selection dialogs except where the HSB, RGB, CMYK and LAB are placed.

  • Keyboard shortcut for using the color picker in another application

    Hi, I'm new here. My first post.
    I remember there were a keyboard shortcut in Ps for using the color picker in another application. For example picking a color in a web browser. I just don't remember the keyboard shortcut. Anyone know it?
    Regards,
    Leif

    Thanks! This was the method I was looking for. Unfortunately it doesn't work when I drag the eyedropper to a browser window on a secondary monitor. Maybe it has to do with my setup, Mac/Mavericks and Ps CC 2014. Anyway thanks for your help, you gave me the answer I was looking for.
    //  Leif

  • Choosing font color for titles in fcpx without using the color Picker

    I am working with a lot of titles.  I would like to use a consistent color in all of my titles.  I know how to select text color with the color picker in the inspector.  I find this very cumbersome.  Is there some way to numerically specify the color (e.g. R= 45, G=55, B=120) or to have a preset palette I can choose from?  I found that by double clicking on the color swatch in the inspector that I can bring up a colors window.  I can store custom colors there, however I can find now way then to apply that custom color back onto the font.  There must be some way of doing this that I am missing.  Thanks for your help.

    You can create an entire "Style" in one title and save that style as a preset.
    Create the look of your Title for the first instance. In the inspector > Text pane, click on the label at the top (usually shows: "Normal" until you set a specific style) -- from that dropdown menu, select Save All Basic and Style Attributes.
    You can then: Select ALL of the titles you want to apply those attributes to (shift click or drag a marquee through them all) and use the dropdown menu to apply the style you saved in one fell swoop.

  • Mouse pointer disappears after using the magnifying glass in the color picker

    Hello,
    I've a problem (one more) with Lion on a Mac mini 2010. Every time I select a color from the screen using the magnifying glass in the color picker, the mouse pointer disappears. I've to move the mouse to the top of the screen and try to click the bar menu. If I succeed, I get the pointer back.
    Someone with the same problem?
    Thanks for reading

    I've found a partial solution: The probem doesn't affect to a new fresh user, so you can backup your data, create a new temporary (admin) user, delete the original account and create it again with the same name (to avoid file permission troubles). Remember to backup your data or it will be lost.

  • Color picker component

    Hi!
    Is there any color picker component out there ? I'd like to make something similar to the color picker buttons in the paintshop pro or photoshop toolbars, where you can see the current background and foreground colors to be used. Any help would be appreciated.
    thanks

    So, what, you click on the button and then it pops up a window with a palette of colours, requiring you to select one? Why not use a JButton with an icon? put the relevant code (re. the JColorChooser and dealing with colour choice by the user) in the actionPerformed method of an ActionListener you add to the button.
    If you're talking about the single-colour-filled colour buttons like in Paint -- you know, the ones you click and then the colour you're painting with gets changed to that colour -- then why not create a subclass of JButton, called ColourButton perhaps (surprise!), something like this:
    import javax.swing.JButton;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    public class ColourButton extends JButton
        private Color colour;
        public ColourButton (Color colour)
            super ();
            this.colour = colour;
            setBackground (colour);
            setOpaque (true);
            setPreferredSize (new Dimension (30, 30));
        public void paintComponent (Graphics g)
            super.paintComponent (g);
            //Maybe manage the filling of the button's surface area with 'colour' somehow
            //      What I've done in the constructor may be enough, though.
            //Perhaps use a border as well.
    //Class to test...
    import javax.swing.*;
    import java.awt.*;
    public class TestColourButtons extends JFrame
        public TestColourButtons ()
            super ("Colour Bar");
            JPanel pane = new JPanel ();
            pane.setLayout (new GridLayout (1, 0));
            pane.add (new ColourButton (Color.BLACK));
            pane.add (new ColourButton (Color.RED));
            pane.add (new ColourButton (Color.YELLOW));
            pane.add (new ColourButton (Color.CYAN));
            pane.add (new ColourButton (Color.BLUE));
            pane.add (new ColourButton (Color.WHITE));
            getContentPane ().add (pane);
            pack ();
            setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
            setLocationRelativeTo (null);
            setVisible (true);
        public static void main (String[] args)
            new TestColourButtons ();
    }

  • Can you disable the color picker in code view?

    One of the  things that slows me down in Dreamweaver is the color picker in code view. it pops up when I'm trying to type a quick colour - like #fff, and causes a pause in my system for 5 seconds (effectively locking up my system) while it thinks about selecting a color. is there a way I can just stop the color picker from popping up at all? I never use it to pick colors.

    There is no way to disable the colour picker in Code view. However, you can successfully prevent it from popping up by changing the delay in Preferences:
    Setting the delay affects all code hints, but they pop up as soon as you start typing. However, I found that a delay of about 1 second was sufficient to suppress the colour picker.

  • Color Picker Component in JSF

    Hi
    I would like to know if there is a Color Picker Component in JSF
    Thanks
    Sreelekha

    Hi
    i tried that component suit , but still i couldnt extract that color picker component from the sample html file :(
    after i become able to extract that then i would try to use it inside jsc pages.
    do you use that component ?
    thanks

  • Where is the opacity slider in the color picker?

    Where has the opacity slider gone in the color picker?  It used to be underneath the color wheel.
    [Edited to correct spelling error.]

    Based on some reading of related discussions, and some experimentation on my own system, it looks like the opacity slider only appears in some contexts and programs.  For instance, it doesn't show up when I am choosing a font colour in Word 2011 or TextEdit.  It does show up when I am choosing a font colour in Omnigraffle.
    Some other articles seemed to suggest it was related to whether there was a background behind whatever the colour was being set on - perhaps that makes sense as opacity only affects whether you can see through something, and if there's nothing to see behind it perhaps it is sometimes thought to serve no purpose?  Perhaps it only works when the program chooses to support it?  Searching Word help for "opacity" returns no results, for instance.
    Hope that helps.
    Ivan

  • Can't type Pantone values in the Color Picker with Ai CS6

    Hi Illustrators,
    I'm running Design and Web Premium CS6 on a Windows 7 machine. I was recently using Ai's Recolor Artwork dialogue for a CMYK document. I wanted to convert my 4 color artwork to Pantone solid coated. I decided to chose some different Pantones. In older versions of Illustrator I could easily open the Color Picker, click on a Pantone value and then just type in a new value to scroll to it. This is no longer the case with Ai CS6. 
    Does anyone know of a work around?

    Thanks for getting back. It works on Photoshop CS6 (64bt) but not so with Ai
    As long as I'm griping on lost features. Here's another great one that's gone with the CS6 wind...
    In the Swatch Options, you used to be able to scroll through the Color Modes by holding Shift and clicking on the square color preview icon. You used to also be able to get the compliment on the fly by holding Control (Windows) / Command (Mac) and clicking on the same icon. Neither feature works anymore.

Maybe you are looking for