How do I REMOVE "setRGB" once it's been applied?

OK, so if I've set the color of a movie clip to change via AS
on a button press, like so:
var my_color:Color = new Color(my_mc);
my_color.setRGB(0xFF0000);
How do I then get it to revert back to its original state
when I press another button?
The Flash Help files didn't take me past this first step...
Please note that the movie clip in question is is not one
color as such... It's a movie clip containing several objects of
varying colors and shades.
When I DO set it to a color on the first button press, that's
because I want it to be turned into a silhouette type thing. But
then when I press another button, I want it to revert back to it's
original NO-color state which shows off ALL its various colors...
Can I not REMOVE the "setRGB" once it's been applied?

use Color.setTransform():
my_color.setTransform({ra:100,
rb:0,ga:100,gb:0,ba:100,bb:0,aa:100,ab:0});
"BrettArchibald" <[email protected]> wrote
in message
news:f0afkf$cq1$[email protected]..
> OK, so if I've set the color of a movie clip to change
via AS on a button
> press, like so:
>
> var my_color:Color = new Color(my_mc);
> my_color.setRGB(0xFF0000);
>
> How do I then get it to revert back to its original
state when I press
> another
> button?
> The Flash Help files didn't take me past this first
step...
>
> Please note that the movie clip in question is is not
one color as such...
> It's a movie clip containing several objects of varying
colors and shades.
> When I DO set it to a color on the first button press,
that's because I
> want
> it to be turned into a silhouette type thing. But then
when I press
> another
> button, I want it to revert back to it's original
NO-color state which
> shows
> off ALL its various colors...
>
> Can I not REMOVE the "setRGB" once it's been applied?
>

Similar Messages

  • I have a iPhone 5 only had it 5 months on the screen it as *** up wiv a padlock wiv a circle around it.. Does anyone no wot this is and how do u remove it? I've been through my phone but can't find anything.. Thanks

    I have a iPhone 5 only had it 5 months on the screen it as *** up wiv a padlock wiv a circle around it.. Does anyone no wot this is and how do u remove it? I've been through my phone but can't find anything.. Thanks

    Do you mean Screen Rotation Lock:
    This keeps your screen from rotating.
    iOS: Screen does not rotate - Support - Apple

  • How can I check the patch I have been apply?

    Dear all:
    How can I check the patch I have been apply in the Financial Management?Does it have the record in the server? or has the SQL to query?
    Regards
    Terry

    Hi Terry;
    In addition to Hussein Sawwan great post, please also check those notes-recomendation on
    how to check MINIPACK 11I.AD.I.5 ?
    Regard
    Helios

  • How to disable a button once it has been clicked

    Hi!
    I need to disable a button once the user has clicked it! I also need the colour of the button to change once it has been clicked as well (I need it to just grey out - not sure if this can be solved using actionscript??)
    The only method I could think of of accomplishing this is to put each button in their own UILoader, but I'm hoping there is a simpler method!?

    Here's what you do:
    1. Open the Components panel and drag a button on the Stage (do NOT create button symbol).
    2. For now, give it an instance name of "aButton" - that's what the code below uses. However, you probably want to use a different name. Also, you can open up the Components Inspector panel (CS4) to change the label on the button - use the Component Parameters section on the Properties panel if you have CS5.
    3. In the Actions panel use this code:
    aButton.addEventListener(MouseEvent.CLICK, disableButtonHandler);
    function disableButtonHandler(event:MouseEvent):void
         //do whatever (gotoAndStop, fscommand...)
         aButton.enabled = false;
    4. Test it. If it was done correctly (I tested it on my computer), the button should deactivate and go greyish when clicked.
    Make sure you use a Button Component. I don't know it this code would work with a Button or a MovieClip symbol.

  • I HAVE REMOVED THE BABYLON SEARCH ENGINE/TOOLBAR YET IT IS STILL RUNNING AS MY SEARCH ENGINE, HOW DO I REMOVE IT ONCE AND FOR ALL?

    I have uninstalled this babylon for my computer and also uninstalled form Firefox yet it is still running as my search engine. Any ideas on how to rid my computer of this?

    thank you ! Looks like those links did the trick.

  • How to have real time data in a lookup or how to update a lookup once it has been created?

    Hi,
    I have created a lookup from an existing table and am using it to match incoming data. I would like to refresh the lookup once  a day. Is this possible. If yes how do I go about it?
    Regards
    Prabha

    If you are looking up onto staged data, just snapshot the data once a day.
    Or you could just do an External Lookup, where there is no need to refresh the data as you can just look it up dynamically.
    You will not get any 'fuzziness' with this approach.

  • How do i remove email addresses that have been imported from my email account?

    Im not sure how i did it but somehow i have a ton of email addresses in my contacts and I want to remove them....Is there a way to do this without have to remove them one at a time.....I hardly send anyone emails from my contact list and would love to get my list back to just people with phone numbers....
    Any suggestions would be greatly appreciated!!!

    Select each photo in the smart collection with the missing question mark icon. Use Cmd+Click or Shift+Click on the first and last if they are all in a consecutive block. Then click top left on the Catalog tab and choose All Photographs. Confirm from the information strip (above the filmstrip) that you are in All Photographs and the number of photos you have selected and then use the menu:
    Photo >> Remove Photos From Catalog

  • Posts going missing - How to update an image once it has been displayed

    Something is very wrong with my posts here. I made this post earlier today, and added it to my watch list. The last time I checked it, there were no replies. Now the title in my watch list has been changed to null and the post is not showing up in the forum. Grrrr.
    Anyway, onto the main event.
    I've got some code that, among other things, displays an image in a Frame. I'm doing this by subclassing JLabel and overriding the paintComponent method.
    My question though, is how can I load a different image in place of that one ? I'm trying to run a slideshow, and whenever I load another image, I can see the new object is being created (I have a println in there), but the image in the frame is not updated with the new one.
    Here is my overridden paintComponent method:
    protected void paintComponent(Graphics g) {
              super.paintComponent(g);
              g.clearRect(0, 0, w, h);
              g.setColor(Color.BLACK);
         Graphics2D g2d = (Graphics2D)g.create();
         g2d.drawRenderedImage(image,null);
              g2d.dispose(); //clean up
    Can anyone advise how I would get the picture in the frame to update ?

    If you are looking up onto staged data, just snapshot the data once a day.
    Or you could just do an External Lookup, where there is no need to refresh the data as you can just look it up dynamically.
    You will not get any 'fuzziness' with this approach.

  • How to close PR automatically once Contract has been created?

    Dear All,
    Please help me with this issue. The requirement here is from PR (with WBS Element) --> Contract --> PO (partial payments, total will be contract value which is adopted from PR)
    How do i automatically close PR once this PR has been adopted into a contract and saved.

    hi
    set message 06 076 as error in customization
    sproMaterials ManagementPurchasingEnvironment DataDefine Attributes of System Messages
    Vishal...

  • How do I remove the "normal state" image after applying a "rollover state" image?

    I want to make a site similar to http://piecespeople.prosite.com/
    But when I apply the rollover image, the original image doesn't vanish, so I can't see the words in my rollover image through the original image.
    I've been able to do this effect with the previous version but now I can't.
    Please help! THanks!

    Thanks Guarav,
    But the fill drop down for the normal state is already clear (with red line). This is how it looks for instance. I want to clear the lightbulb in the rollover state so that I see the words behind it.

  • Some bookmarks have "grown" a suffix of 3 characters âЄ . The bookmarks still work. What are these nutty suffixes and how do I remove them? Many have been "infected"?

    These suffixes are unwanted and have infected all my browsers Firefox and IE9. Some bookmarks are unaffected. This also happened on my previous PC running Windows Vista and IE8. I edited all the affected bookmarks to remove the suffixes, but now they're back.

    Upgrade your browser to Firefox ab and check
    * getfirefox.com

  • Can someone tell me how to retrieve the itunes once it has been downloaded. By the way, the icon didn't appear on the desktop, Can someone tell me how to retrieve the itunes once it has been downloaded. By the way, the icon didn't appear on the desktop

    is it possible to download itunes several times and it not be on the computer? if it is, can someone tell me how to retrieve it, please.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      
    Also, you should be able to redownload via iTunes on the computer. See that method included here:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • HOW do I remove SPs after uncompressing BUT before applying???

    I've uncompressed some Support Packages that I do not need to apply ... ie. IS-OIL, I accidently unpacked this item and do not have to apply it.
    Thanks
    maria

    Hi Maria,
    Decompressing .SAR or .CAR file is nothing but creating the .ATT and .PAT files in the OS level. it's by default compressed to DIR_TRANS\eps\in. (the same thing is done by putting .SAR file in /trans and then uncar by sapcar to /trans/eps/in.. in the case of uncar by sapcar tool in the server)
    If you don't need to apply that, then its okay.. not mandatory to delete the .att and .pat files. but if you don't want something to stay on your trans folder unnecessarily, then you may search for those .ATT and .PAT of IS-OIL then delete them manually.
    .ATT gives the attributes of the patch.. you can know by reading it which one is for IS-OIL.
    or the easiest way would be to take the .CAR or .SAR file somewhere in a dummy folder and uncar there by sapcar tool to see the exact .att and .pat files and then search for the same files in /trans/eps/in folder and delete.
    Regards,
    Debasis.

  • How can I determine which service packs have been applied?

    Our installed version of business objects enterprise R2 is indicted as 11.5.3.4175 in the support information selected from the Add/Remove Programs listing of Business objects Enterprise R2......
    How / or what information can I refer to in order to compare the version # to in order to determine which SP#'s and / or fix patches have been installed?

    To verify that you have SP2 or SP3
    installed (Windows)
    1. Go to Start > Settings > Control Panel.
    2. Double-click Add or Remove Programs.
    The "Add or Remove Programs" dialog box opens.
    3. Check the list for BusinessObjects XI Release 2 Service Pack 2 or
    BusinessObjects XI Release 2 Service Pack 3.

  • HT204053 How can I remove an apple id that has been disable from I cloud?

    How can I remove apple id that has been disable fro my iCloud ?

    You cannot delete an Apple ID. All you can do is stop using it.

Maybe you are looking for

  • How to get OutputStream/Writer for a file in a JSP code?

    In a JSP code as shown below, how could we get an OutputStream to write a file that resides on the server file system? I'm stuck after five hours struggle! <% /* simple experimental JSP program */ ...  // get request data Properties pt = new Properti

  • Removing gmail from mailbox

    How do I remove my gmail from my mailbox

  • LOG_TM_ORD_INT_II not found??

    Hello, business function LOG_TM_ORD_INT_II should be available from SAP ERP 6.0 Support Package 4. We have here a SAP IDES ECC 6.0 EhP6 , but we do not found LOG_TM_ORD_INT_II  on the IDES System? Who can help? Gruß Toni

  • Problem with an HTML snippit and PayPal button - cant figure this one out?

    Hello Mac people. We are really good with these things but this one has got us completely foxed. We've done a tribute website in iWeb 08 for a friend and his family that were tragically murdered in November 2006 - the address is www.yemi.co.uk We are

  • Printing to Adobe Acrobat in Leopard

    I recently upgraded to Leopard. I love it but have one problem: I have Adobe Acrobat 8.0 and with Tiger I could print to Acrobat. Since upgrading I don't have that option & can't find how to enable it. I know, I know - I can just "Save as PDF..." but