AS3: Changing saturation with tweening

Hi everyone.
I have a gallery filled with photos. The photos are loaded
into Sprites and I need to desaturate them. When a Sprite is
clicked, its image should return to its original saturation value
in a tweened effect. I managed to achieve a desaturated effect
using the ColorMatrixFilter, but mostly through experimenting with
different values, not the most scientific approach. So:
1 - Is there a better way to change an image's saturation? Or
can anyone explain me how to change the ColorMatrixFilter's values
to get a certain amount of saturation?
2 - How can I switch between the saturated/desaturated values
with a tween-like effect?
Thanks in advance!

don't enter text in the ide.  use actionscript to assign your textfield's initial text and also to change it.

Similar Messages

  • Bring obj to front with tween?

    How can i make the obj change to front of another when the mouse roll over, and come back when out?
    I look for "setChildIndex with tween" but i don't found...

    Man, sorry but i try to do something similar with another script, but without change depht, just move x position and come back where it stopped.
    I created a function when the mouse moves over the MC, he begins a Xposition tween 30 to 100. And when the mouse roll out, he comes back from the position it stopped. The script for the rollover works fine. But the rollout, always returns to 100.
    Understand?
    Here is the code:
    stop();
    import fl.transitions.*;
    import fl.transitions.easing.*;
    MovieClip(root).content_mc.inmage_mc.cd_mc.addEventListener(MouseEvent.ROLL_OUT, OutB2B);
    var diskX:Number = disco_mc.x;
    function OutB2B(e:Event):void {
    this.Tween = new Tween(disco_mc, "x", Regular.easeIn, (diskX), 30, 1, true);
    this.Tween = new Tween(disco_mc, "rotation", Regular.easeIn, -45, 1, 1, true);
    gotoAndPlay(3);
    Can explain what am I doing wrong?
    edit:
    I intend to do the same thing with the rotation, but first need to figure out how to make the X. ..
    Thanks..
    Message was edited by: Igor R. Gomes

  • I cant remember my password to logon to my mac, how can i change it with out needing the old one?

    i cant remember my password to logon to my mac, how can i change it with out needing the old one?

    http://support.apple.com/kb/HT1274

  • Error while changing BOM with change number

    Hi ALL, Please help me with followed error message, I am using ECM. I created ECR and converted to ECO and then released.
    Object management record cannot be generated
    Message no. 29046
    Diagnosis
    You want to change the BOM with the entered change number.
    One of the following situations triggered this error message:
    1. The indicator that allows automatic generation is not set for object type BOM in the change master.
    2. The indicator generation only on initial creation is set for object type BOM
    3. You are processing a change request.
    System response
    The system checks whether the indicator object management record will be generated is set in the change master.
    If the indicator generation only on initial creation is set, the system checks whether the BOM exists in the system.
    Procedure
    If you are authorized to change the change master, execute the following steps:
    For 1.)
    Set this indicator for object type BOM or create the control record in the change master.
    For 2.)
    If the BOM already exists in the system and the generation only on initial creation indicator is set, the system can no longer generate the control record automatically.
    In this case you have to add the object control record to the change master first, then you can change the BOM in relation to the change number.
    For 3.)
    You cannot generate any object control records for a change request.

    Hi
    With your question regarding changing BOM with change number  it looks lke there may be problem in defining the Object types,objects.Moreover whenever converted to ECO you need to enter into cs02 tcode for changing the bom with relevant change number and valid from date.
    Hope this gives you a clear idea.let me know if you need anyfurther inputs.
    Regards
    Praveen

  • Creation of Change request with reference to existing change request

    Hi
    I want to do Creation of Change request with reference to existing change request for MDG-F and MDG c/MDG S Is it possible? If yes, How?

    Hi Sanjay,
    No , its not out of box functionality in MDG. Reason being, MDG framework provided some standard API's with the help of which we can do our development with ease.
    Like Governance API                            : IF_USMD_GOV_API
           Convenience Governance API         :IF_USMD_CONV_SOM_GOV_API
           Change Request API Interface:       IF_USMD_CREQUEST_API
    With the help of which you can play around with your data in MDG with the pre-defined methods of it.
    Best Regards,
    Kaustubh

  • Find/Change words (with GREP) and apply a style...

    I need a Script for Find/Change words with GREP, and apply a paragraph style...
    Thanks...

    Hi Marcos,
    If you want the script to create character styles: Bold , Italic, Bold Italic, etc, and replace local formatting with these styles, use scripts in post #3.
    But if you want find and change words, or/and replace local formatting with styles defined by you, use FindChangeByList script.
    If the latter, I recommend you to download and install Record Find Change script (written by Martin Fisher).
    Then choose settings you need in Find-Change dialog – make sure they work as expected – and run Record Find Change script. A Notepad/TextEdit file will pop up with a line containing the recorded setting. Copy it, open FindChangeList.txt, delete the contents of this file and paste the line you just copied (or add it to the bottom of the file).
    Repeat the process for all find-change operations you need.
    Finally run FindChangeByList.jsx to make all changes in one go.
    However, while using Record Find Change script, you may encounter a problem: it doesn’t record paragraph and character styles placed inside a group. But you can write references to such styles like so:
    appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Style Group 1"). paragraphStyles.item("Paragraph Style 1")
    Kasyan

  • I have an ipod touch 4. Can change it with the ipod touch 5?

    I have an ipod touch 4. Can change it with the ipod touch 5? if yes then how much do i have to pay for it?

    Apple will only give you a 10% recycling discount if you turn in an old iPod when you purchase a new one. Better off selling it yourself.
    Apple - Recycling Program for iPod and Mobile Phones

  • InfoCube Error Message: Choose a change request with target system BWQ

    Hi experts,
    I have a problem when I want to edit an InfoCube created by other developer. The error message received is as follow:
    "<b>Choose a change request with target system BWQ</b>".
    When I click on the Documentation (F9) button, the detailed message is:
    "Message no. TK511
    Diagnosis
    The selected change request BWDK901086 has target system .
    However, the objects you edit can only be recorded in change requests with the target system BWQ.
    The correct target system is determined from the package and transport layer to which the object concerned belongs.
    System response
    The selected change request BWDK901086 is not used to record the objects.
    Procedure
    Either choose a different change request or change the target system of the change request BWDK901086.
    From the prompt window for change requests, you can display all requests you can use by choosing Own requests.
    Alternatively, you can create a new request by choosing Create request.
    For more information, see the SAP Library under BC - Basis Components -> Change and Transport System ."
    Can someone helps me to solve this problem?
    Thanks!

    hi Fullham,
    try se09/10 and find request BWDK901086 (use binocular icon) or se03. then double click that request, go to tab 'properties', hope you will see 'Target System' system there, click 'edit'/pencil icon and change it to BWQ.
    you may need to change the owner (which may not authorized), ask basis help if necessary.
    hope this helps

  • DBMS_CDC find only the columns that are changed along with the primary key in the table

    Hello,
    We are having a requirement to find the change data in the production environment.
    We are planning to use the DBMS_CDC utility.
    But for  example in the create change table 1 picked emp_id,ename, address, salary,dob.
    I have a sample data of
    empid
    ename
    address
    salary
    DOB
    1
    test1
    24 test street
    2000
    20-Jan-98
    2
    test2
    25 test street
    2500
    15-Aug-97
    if ename for empid 1 is changed to test1_test3 from test1.
    My CDC is capturing  the values in the old and new values in the 5 columns.
    But i need to get only the empid (primary key of the source table) and the ename column as only that's been updated not the rest of the 3 columns.
    Can i accomplish this.
    Please advice.

    Hello,
    Thanks for the information.
    but if i change the change table  then i will miss the other columns right?
    I want to get the columns( empid and ename) only if ename is changed. i.e when ever any column in emp table changes i need to get all the columns where the data is changed along with the primary key columns empid.
    Is there any way i can tweak the parameters so that i can achieve this or is there any other way using the cdc i can get this data.
    Thanks

  • Is it possible to set a "query in change mode" with the Report Designer 7.x

    Hi,
    I have a query set in "change mode"  with an index set as "data can be changed using user entries or planning funcionts".
    If I use this query as a "Data Provider" in the Report Designer, the result is still in "change mode" or a result of the Report Designer is only a static image?
    Thank's,
    Valentina.

    Hi Deepu,
    I had suspected this...
    Thank you very much!
    Regards,
    Valentina.

  • Authorization to change BOM with history requirements

    Hi Techies,
    I m facing an issue now with respect to authorisation of changing BOM with history requirements. Our quality system was a copy from a production server which was used for CRM before. Usually in SAP when we change a BOM with a change number we cant again change it back without a change number.
    In our case it is not providing an error but it is providing a warning. Now my requirement is to change this warning message to error message. So that people wont change BOM without a change number.
    I tried to enter the transaction SU24 and found the authorizaton C_STUE_NOH with proposal YS. Then i tried to change the filed value to ' ' (NO) and saved it.
    But still i m not able to change the warning message to error message.
    Is there any other setting i need to carry out for this.
    Please help me with this issue.
    Thanking you in advance.
    Regards,
    Kris.S

    Dear Krishu,
    Below has been mentioned in OSS note: 420878. Check once again you have save as NO. Then go to tcode SU03 Object Class PP/ C_STUE_ROH
    Summary
    Symptom
    In Customizing of the BOM, the history requirement is set or a BOM requires a history. Despite this, it is possible to process BOMS without engineering change management. The system only processes a warning message (29 045) which can be skipped.
    Additional key words
    CS02, change number, OS27, W045(29)
    Cause and prerequisites
    Authorization profile
    Solution
    Check the authorization profile of the respective user.
    Example:
             C_STUE_NOH <OBJ>
                &_SAP_ALL    <AUT>
                    NOHIS      <FLD>
    would have the authorization to process BOMs requiring history without a change number. In this case, if you change '*' to ' ' in NOHIS, you will no longer receive a warning, but rather an error message.
    Regards / US

  • Can I change background with Lightroom?

    Can I change background with lightroom?? Please help me. Thank u

    Hi behzad,
    to requote my message #2: Right-click the right window scrollbar (VI in edit mode) and select "properties"…
    What don't you understand of this?
    When you don't trust me you should read the LabVIEW help on this topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Change country with a remaining balance??

    Hi,
    I just relocated from Australia to Germany and want to change countries in my itunes store. I still have AUS $0.27 left on my Australian balance and it won't let me change the country unless I have spent it. So, either how can I spend $0.27 in the itunes store or how can I change countries, with loosing the balance?
    Or might I just buy a Germany gift card and then it will change after entering the codes?
    Thanks,
    B

    BTW, this forum is for questions about iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. Normally you will get the quickest and most applicable responses if you ask your questions in the general iTunes forums.
    Regards.

  • HR master data change export with Interface-Toolbox PU12

    Hello out there !
    I implemented a HR master data change export with PU12 at one of my customers.
    It works fine - with one little problem:
    It is only possible to export one period (actual or selected).
    Is there any possibility to export more than one period (also periods in the future) ?
    The request is to export also master data with validity start date in a future period.
    Thanks for any help.
    Greetings, Holger Mächtig

    Dear Holger,
    I am very curious about your problem last year. Is it possible to do a future export with PU12?
    I am now working with PU12 for the first time and I have set up a export file in PU12.
    But when I am doing an update without filling the name for the file layout I have the following error:
    "An error occurred when opening the "export file"
    When I am filling the file layout I have the following error:
    "An error occurred when writing to an export file" (Error Number E107).
    "File processing: end of file".
    When I am not doing an update the export file runs and seems right.
    Do you know what I am doing wrong?
    Thanks in advance!
    Kind regards,
    Yvette

  • How do you change password with out using cd on imac?

    How do you change password with out cd on imac?

    Please read:
    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/

Maybe you are looking for