Change state for itemRenderer when drag complete

I have a List with dragEnabled = true, and selectionColor = "#ff0000", when the user selects one item, it behaves as what I expect. But when I complete drag and release item, it still remains selected state. What I want is when drag complete, the item back to normal state, NOT selected state. What I do is that I check if the data dropComplete property is true, then change the state, but it can NOT work.
my code is following:
override protected function getCurrentRendererState():String {
    currentState = super.getCurrentRendererState();
    if(data.dropComplete) {
        currentState = null;
        data.dromComplete = false;

the solution is really simple, just listen for dragComplete event in List
private fucntion myDragComplete(event:DragEvent):void {
    this.selectedIndices = new Vector.<int>;

Similar Messages

  • Quick way to change "Optimize for" setting when "mirror displays" is on?

    Is there a quick way to change "Optimize for" setting when "mirror displays" is on?
    I have two displays on my Mac Mini for totally different areas; I can't see the first monitor when I'm on the second. One is 1280x1024, one is 1920x1200. As I switch fairly often I'm wondering if there is a built-in or 3rd-party-utility way to quickly toggle the "optimize for" setting that is under "System Preferences" -> "Displays" -> "Display" tab -> "Optimize for:" dropdown box.
    As Apple sadly doesn't make a all-in-one keyboard / mouse - need one as one of the monitors is used for just a very comfy chair, so keyboard is on my lap - I'm using an Lenovo ThinkPad USB Travel Keyboard, model SK-8855, and some key cobinations, esp. with function keys, seem not to work on it. So something from the desktop context menu or that allows you to set the hotkey would be preferable.
    Thanks for any help,
    -DJBC

    I'm thinking that, Display Menu from the Mac App Store will help.

  • Is theere an app I can download that will let my LED light change colors for like when it alerts u fora call or message?

    Is there an app I can download that will let my LED light change colors for like when it alerts u for a call or message?

    On the iPhone 4, the LED cannot change color.

  • How to create change pointers for IT6 when custom table Z777A changes?

    Situation: We are using custom table Z777A (copied T777A and added fields) to store building locations. Employee's IT6 subtype 92 retrieves valid work address building locations from table Z777A.
    Problem: Whenever there are updates to Z777A, we need to find all IT6 subtype 92 records that use the changed building location from Z777A and create IDOC's The change pointer entry will need to be for the IT6 subtype 92 row that is affected.
    Question: Can anyone give me specific details as to how this can be accomplished? Thanks.

    Hi,
    MASTER DATA CHANGES DISTRIBUTION BY CHANGE POINTER TECHNIQUE:
    Step 1: Creating change document object in SCDO transaction.
    Step 2:Assigning tables to the change document object.
    Step 3:Specifying change document items in transaction BD52.
    Step 4: Activating change pointers for the message type HRMD_ABA in transaction BD50.
    Step 5:Activating change pointers globally.
    Step 6:Executing program RBDMIDOC  in SE38, Specifying message type HRMD_ABA.
    with regards,
    M.Sreeram.

  • Why am I being asked to authenticate for example when dragging a picture from an email to my desktop?  Can this be turned off?  It started with Lion

    Why am I being asked to authenticate by entering my password when for example dragging a picture from an email to my desktop?  This started with Lion.  Is there a way to turn it off?  Thanks,

    I found that right clicking on my hard drive, Get Info and under Sharing & Permissions when the Privilege was changed to Read & Write, the authentication pop ups stopped and I could drag pictures to my desktop and save attachments there also.  Now my hubby and I will investigate the Names under S&P.  We know one is System, another is him sharing.  There is a third that says everyone so it will be the main one we research.  I get the basics of what they are - to secure folders etc. from someone getting into my computer.  I'm sure this is a pretty basic description of the issue so I guess if you read this and try any of this to stop the authentication, you should make sure you know what and why. 
    Thanks for your help softwater.

  • Error occuring in SELECT statement FOR UPDATE when using WITH cluase

    Hi,
    Iam using oracle 11g version
    Iam having a query with fetch records for update insid with cluase as
    cursor c1 is
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    for update of <col1> skip locked
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    if i add "for update of <col1> skip locked" this cluase
    iam getting error ORA-00907: missing right parenthesis
    when i remove "for update of <col1> skip locked" the block is working fine..
    can i know why error is occuring i

    Hi, first of all, your placing of "for update" clause is wrong. It should be at the end like:
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    for update of <col1> skip locked;Second, if you try to compile it with this syntax then you will get a new error.
    ORA-01786:     FOR UPDATE of this query expression is not allowed
    Cause:     An attempt was made to use a FOR UPDATE clause on the result of a set expression involving GROUP BY, DISTINCT, UNION, INTERSECT, or MINUS.
    Action:     Check the syntax, remove the FOR UPDATE clause, and retry the statement.So, you will not be successful with the union clause in your query.

  • How to always hide the SQL statements for users when they run User Queries?

    Hi,
    from the IT dept. position, I don't want users to see and be so curious about the SQL commands.
    How can I always hide the textbox of  Display Query Structure?
    thanks.

    Hi,
    Unfortunately system design has short of this function. If users are allowed to run those queries, you can not hide the query structure.
    You may post a DRQ here: /community [original link is broken]
    Thanks,
    Gordon

  • Flex List ItemRenderer : Change States from parent ?

    Hai there,
    So i created a list that uses an arrayCollection as dataProvider and an itemRenderer with 2 states : LabelState and ProgressState, the labelState is the start state and shows a Filename, the progressState is the state i need to change to when i press a "Start Upload" Button.
    This is the itemrenderer :
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    autoDrawBackground="true" currentState="LabelState" width="800">
    <s:states>
    <s:State name="LabelState" />
    <s:State name="ProgressState" />
    </s:states>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    public function changeState():void
    trace("changing state for " + label_field.text);
    this.currentState = "ProgressState";
    trace(this.currentState);
    ]]>
    </fx:Script>
    <s:Label name="label_field" paddingLeft="10" maxHeight="40" paddingTop="10" paddingBottom="10" id="label_field" width="800" color="#333333" includeIn="LabelState" text="{data.label}"/>
    <mx:ProgressBar id="progress_field" left="3" top="3" bottom="3" mode="manual" chromeColor="#0096FF" includeIn="ProgressState" textAlign="center" labelPlacement="center" maximum="100" color="#FFFFFF" right="3"/>
    </s:ItemRenderer>
    This is the code for the List :
    <s:List keyUp="lst_selected_files_keyUpHandler(event)" skinClass="styles.skins.ListSkinNoHorizontal"
    borderVisible="false"
    contentBackgroundColor="#c9c9c9" contentBackgroundAlpha="1"
    id="lst_selected_files"
    width="100%" height="100%"
    alternatingItemColors="[#EAEAEA,#FAFAFA]" color="#000000"
    itemRenderer="components.ProgressLabel" dataProvider="{arr_items}" />
    <components:RemoveBar nr_of_items="{arr_items.length}" id="cmp_removeBar" hermesRYA="cmp_removeBar_hermesRYAHandler(event)" bottom="-35" width="100%" height="35" />
    This is the function that changes the states for the current "to be uploaded file":
    protected function uploadNextFile():void
    if(uploadingFile!=null) uploadingFile==null;
    popup = null;
    popup = new ProgressPanel();
    lst_selected_files.selectedIndex = currentUploadNr;
    current_progressItem = lst_selected_files.dataGroup.getElementAt(currentUploadNr) as ProgressLabel;
    current_progressItem.changeState();
    lst_selected_files.validateNow();
    For some reason the states change ... but the elements aren't visually updated, ... meaning that i still see the label and the progressbar isn't visible :/
    anyone ?

    This seems to work for me:
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx" >
        <s:controlBarContent>
            <s:Button label="test" click="(list1.dataGroup.getElementAt(0) as Object).test()" />
        </s:controlBarContent>
        <s:List id="list1">
            <s:dataProvider>
                <s:ArrayList>
                    <fx:Array>
                        [0,1,2]
                    </fx:Array>
                </s:ArrayList>
            </s:dataProvider>
            <s:itemRenderer>
                <fx:Component>
                    <s:ItemRenderer>
                        <fx:Script>
                            <![CDATA[
                                public function test():void {
                                    currentState = 'state2';
                            ]]>
                        </fx:Script>
                        <s:states>
                            <s:State name="state1" />
                            <s:State name="state2" />
                        </s:states>
                        <s:Rect width="50" height="50">
                           <s:fill>
                               <s:SolidColor color.state1="red" color.state2="green" />
                           </s:fill>
                        </s:Rect>
                        <mx:ProgressBar includeIn="state2" />
                    </s:ItemRenderer>
                </fx:Component>
            </s:itemRenderer>
        </s:List>
    </s:Application>
    You will probably want to override getCurrentRendererState() to do this properly tho.  This post demonstrates how to use DataRenderer instead if you would rather: http://flexponential.com/2010/02/07/using-datarenderer-to-add-custom-states-to-a-spark-lis t-renderer/
    In general you shouldn't interact with the renderers of a List directly (via getElementAt), but rather by changing the data in the List and building an ItemRenderer that reacts to those changes.  So it would be better if you did something like list1.dataProvider.getItemAt(0).changeState = true and then in your renderer override the data setter to change the state if that variable is set.

  • My macbook air wont change songs when for itunes when i use the buttons on the top of my keyboard and when i restart my computer they work for like 10 minute then stop working again. Did i change a settting? what should i do?

    My macbook air wont change songs for iTunes when i use the buttons on the top of my keyboard and when i restart my computer they work for like 10 minutes then stop working again. Did i change a setting? what should i do?

    Hello King Cutway
    If you are having issues with the functions keys, then check the settings in System Preferences > Keyboard and look to see if Use all F1, F2, etc. keys as standard function keys is unchecked so you can use it properly. 
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/HT1296
    Regards,
    -Norm G.

  • My CS3/PS has started to change the cursor into a line of three VERY small icons when dragged over a picture or menu. Thus it is VERY difficult for instance to drag a layer in the layer list to the wastebasket - the cursor simply is too big for the waiste

    My CS3/PS has started to change the cursor into a line of three VERY small icons when dragged over a picture or menu. Thus it is VERY difficult for instance to drag a layer in the layer list to the wastebasket - the cursor simply is too big for the waistebasket icon. Even all other exact work is impossible.  Of course I have checked all the cursor presets but nothing seems to help. My OS is Windows7.

    Have you tried resetting Preferences?
    A logical next step would be to reset your Preferences.
    To reset Preferences:
    If Photoshop is already open on your screen, close it (Quit). Then hold down Shift+Ctrl+Alt (Win) / Shift+Command+Option (Mac) on your keyboard and start Photoshop.
    A dialog box will pop up asking if you want to delete the existing Preferences file (the "Settings"). Click Yes in the dialog box. The existing Preferences file will be scrapped and a new one will be created.

  • Cannot install itunes 10.6. pop up msg states "There is a problem with this Windows Installer package. A program required for this install to complete could not be run.Contact ur support personnel or package vendor

    Cannot install itunes 10.6. pop up msg states "There is a problem with this Windows Installer package. A program required for this install to complete could not be run.Contact ur support personnel or package vendor.Please advise.

    Follow Microsoft instructions below on how to take control of the Folder. You may apply this on your C:\Program Files(x86)\iTunes
    You may take the ownership of the folder and then use the steps to grant permission to everyone–
    Locate the file or folder on which you want to take ownership in windows explorer 
    Right click on file or folder and select “Properties” from Context Menu 
    Click on Security tab 
    Click on “Advance”  
    Now click on Owner tab in Advance Security Settings for User windows 
    Click on Edit Button and select user from given Change Owner to list if user or group is not in given list then, click on other users or groups. Enter name of user/group and click ok. 
    Now select User/group and click apply and ok. (Check “Replace owner on sub containers and objects” if you have files and folder within selected folder) 
    Click ok when Windows Security Prompt is displayed 
    Now Owner name must have changed. 
    Now click Ok to exist from Properties windows 
    Once you have taken the ownership of file or folder
      Grant Permissions to everyone- 
    Go to C: and then click right click on folder and chooseproperties. 
    Then go to security tab and click Edit then clickAdd => Advanced. 
    If you click on advanced now click on Find Now and chooseeveryone and click Ok. 
    Then again click Ok and now click onAllow => Full control => Ok.

  • I'm not able to download Itunes.  I keep getting this Apple Software Update message that states "There is a problem with this Windows installer package.  A program required for this install to complete could not be run.  Contact your package vendor"

    Not able to access Itunes store anymore.  Just quit working for no reason.  I've tried deleting Itunes and related components from the Control Panel, but when I try to remove Apple Software Update, I get a message that states "There is a problem with this Windows installer package.  A program required for this install to complete could not be run.  Contact your support personnel or package vendor".  Not sure what this message means.  Am I suppose to contact Apple ?  What is meant by package vendor ?

    Apparently it's an itunes issue. I just tried to update and got the same issue. Called att to activate my iphone 4s and they say they can do the swap but apple is telling them itunes is down atm.  So will have to wait

  • Why does captivate 5 scorm 2004 change the pass/fail status when using complete/incomplete

    SUMMARY:  I am trying to use SCORM 2004 reporting but I am finding out ADOBE does not diffentiate between COMPLETE/INCOMPLETED and PASSED/FAILED variables in the SCORM 2004.
    RESULT: I can not accurately get the passing/failing status from the course.
    QUESTION: Is their anything I can do or does ADOBE have a patch they have release which will accurately report the passed/failed STATUS as well as the completed/incompleted status.
    OTHER RESEARCH: I even attempted to post these "proofs" on scorm.com and they have something called "SATISFACTION TRACKED" to accomodate content creation systems (CAPTIVATE 5) which does not follow the standards of SCORM 2004.
    BACKGROUND:  the report status "Incomplete/Complete" and "Pass/Fail" under the publishing options for SCORM 2004 essentially mean the same thing when the CAPTIVATE COURSE sends setvar commands to the SCORM API...  In other words the SCORM API receives the same exact commands when publishing in both modes.  "THIS IS WRONG"
    why is the wrong?  IF REPORTING; incomplete/complete ;  the CAPTIVATE 5 COURSE SHOULD NOT "change" the STATUS OF PASS/FAIL when attempting to report COMPLETE/INCOMLETE with 100% slide views.
    DEMO #3> SHOWS THE PROBLEM
    About DEMO #1 and DEMO #2> these are other reporting options I attempted with other problems arrising..so these images are just for supporting my original problem which is shown in DEMO #3...
    DEMO 1 (REPORT STATUS has no affect on reporting):SETTINGS:
    PASS: (PROBLEM)
    Anything above Passing Score is not recorded to LMS (once passing is reached...no more bookmarks are recorded)
    FAIL: (CORRECT)
    Failure gets sent to the database on the last screen with "completed"
    DEMO 2 (Report status  [Complete/Incomplete  Pass/Fail]   has no impact on commands sent to scorm api):
    SETTINGS:
    PASS: (CORRECT)
    Very Last page gets sent to the Database
    FAIL: (PROBLEM)
    NOTHING GETS SENT TO DATABASE (stuck in final score screen forever)...because it says "INCOMPLETE"
    DEMO 3:
    Report status [Complete/Incomplete Pass/Fail] has no impact on commands sent to scorm api
    SETTINGS:
    PASS: (CORRECT)
    Very Last page gets sent to the Database with a 90% passing with "completed"
    FAIL: (PROBLEM)
    LAST SLIDE SENDS "completed" but GETS SENT AS A PASSING SCORE??? even when it is a failure
    (IN OTHER WORDS ADOBE CHANGES THE PASS/FAIL STATUS based on slide views...
    this is WRONG ....REALLY WRONG becuase I am trying to report
    "COMPLETE/INCOMPLETE" for 100% slide views
    PASS/FAIL OPTIONS:
    OPTION I CAN PURSUE?
    SO WHAT CAN I DO?  YES, I CAN TELL THE LMS...to COMPARE THE SCORE RECEIVED DURING A "COMPLETE" status...and then change the grade in the LMS based on the SCORE IN THE LMS...BUT THAT WOULD MEAN THE LMS COULD REPORT ONE GRADE and the COURSE COULD REPORT A DIFFERENT GRADE....and that would not be good.
    ALL OF OUR COURSES SHOW THE STUDENT THE FINAL SCORE WITHIN EACH COURSE..
    QUESTION TO ADOBE?
    SO ADOBE when are you going to differentiate these two reporting options so that the PASS/FAIL OPTIONS ARE ACCURATELY REPORTED WHEN USING COMPLETE/INCOMPLETE?
    MORE INFORMATION
    HERE IS THE SCORM.COM "Satisfaction" adjustment (very last line) to accomodate inconsistent reporting in CAPTIVATE 5.
    Thanks,
    DOUG LUBEY OF LOUISIANA
    www.douglubey.com
    OTHER WEBSITES:
    http://forums.adobe.com/message/3332035
    http://forums.adobe.com/message/3122315
    http://forums.adobe.com/thread/712502?start=50&tstart=0
    http://forums.adobe.com/thread/800570
    http://forums.adobe.com/thread/720121
    SEARCH ENGINE REFERENCE:
    CAPTIVATE SCORM SUCCESS_STATUS
    captivate 5 scorm 2004 pass/fail is dependent on complete/incomplete
    scorm 2004 captivate cs5 success_status incorrect
    scorm 2004 captivate cs5 reports success_status incorrectly
    scorm 2004 captivate incorrectly reports pass/fail
    scorm 2004 captivate 5 incorrectly reports pass/fail
    scorm 2004 "captivate 5" incorrectly reports pass/fail
    captivate 5 sends a pass even when a failure is issued by the course using scorm 2004.
    captivate does not work properly when working with completed status.
    CAPTIVATE SCORM SUCCESS_STATUS COMPLETE STATUS SHOULD BE INDEPENDENT
    CAPTIvATE 5 cmi.completion_status
    and cmi.success_status does not work independently with scorm 2004.  they both share the same definition.  These two field were designed to help differentiate the difference between a passing or failing score and when the course is actually completed.   WITH CAPTIVATE 5 they do not differentiate the two.  COMPLETE means PASS and INCOMPLETE means fail..
    I was trying to use "completion_status" as a way to determine when all slides were shown.  So that I can send the final score (PASS/FAIL) the LMS after all slides were viewed and this was the absoluted score the student recieved.
    2011 CAPTIVATE CHANGES cmi.success_status TO PASSING WHEN COURSE REPORTS FAILURE
    2010 CAPTIVATE CHANGES SUCCESS TO PASSED WHEN COURSE REPORTS FAILURE
    CAPTIVATE 5 CHANGES cmi.success_status TO PASSING
    CAPTIVATE 5 CHANGES cmi.success_status TO PASSING WHEN COURSE REPORTS FAILURE
    CPTX CAPTIVATE CHANGES cmi.success_status TO PASSING
    CP5 WHY DOES CAPTIVATE SCORM SUCCESS_STATUS
    CPTX WHY DOES CAPTIVATE CHANGE PASSING STATUS
    CPTX CAPTIVATE SCORM CHANGES FAILING SCORE TO PASSING SCORE
    CAPTIVATE SCORM SUCCESS_STATUS COMPLETE STATUS MEANS THE SAME THING
    CAPTIVATE SCORM SUCCESS_STATUS COMPLETE STATUS SHOULD BE INDEPENDENT

    Hi,
    Here's something I found in a similar situation... hope this helps!
    After publishing your CP5 project as a SCORM 2004 zip file, unzip the file so you can get into the separate files.  Open the imsmanifest.xml file with a text editor; I like using Notepad++.  Search for the line starting with <imsss:minNormalizedMeasure>.  The complete line will probably look like <imss:minNormalizedMeasure></imss:minNormalizedMeasure>, this is the line that is supposed to contain your passing score (at least for our LMS).  So, if your passing score is supposed to be 80%, edit this line to be:  <imsss:minNormalizedMeasure>0.80</imsss:minNormalizedMeasure> and save the file.  Then select all the files and re-zip them, I use 7-zip for that.
    I found one other weird thing that doesn't happen 100% of the time, so test it.  In the example above, try to get a score of exactly 80% (or whatever passing grade you are using) and see if you get the correct status reported.  I found I sometimes have to re-edit that line in the manifest file to be 0.79 so it correctly includes an exact 80% score.  No idea why and you have to watch the number of questions in your quiz to make sure that works for you mathematically.
    If this works or not, I'd recommend posting your results so others can get some ideas.  Good Luck!!

  • WHen trying to install itunes the following error appears. There is a problem with this windows installer package. A program required for this install to complete could not be run. Contact your support personnel or package provided. Any help?

    When trying to install itunes the following appears. There is a problem with this windows installer package. A program for this install to complete could not be run. Contact your support personnel or package vendor. Any help?

    a colleague of mine suffers from the same problem. did a quick look on the apple support pages. found many topics covering the same problem.
    also saw 1 marked as correct answer... (just browse the discussion pages before you ask, this answer appearantly was sitting there from oct. 14...)
    (i'm not on windows, so i can't test...)
    good luck!
    j.
    Correct Answer by Peter Lepere  on Oct 14, 2011 3:07 AM
    Hi Rick,
    by "repair" I mean I went to the control panel, option - programs and features, and in the list of all my installed programs I selected "Apple Software Update". On top of the screen you find the options Uinstall, Change and Repair. I clicked the repair button and that did the trick. After the repair I could uninstall the program. I also uninstalled iTunes, Apple Application Support, Apple Mobile Device Support en Bonjour, thus all Apple programs. Then I installed iTunes 10.5 again and everything went fine.
    Success,
    Peter

  • Whenever I try to sync my ipod, it'll say that it's syncing and then "waiting for changes to be applied" when it reaches step 5, then it closes and nothing happens. I don't know what to do :(

    Whenever I try to sync my ipod, it'll say that it's syncing and then "waiting for changes to be applied" when it reaches step 5, then it closes and nothing happens. I don't know what to do

    Hi, There
    What do you mean nothing happends? because after step 5/5 the sync is complete and it should go back to the normal top screen of itunes. Is this what is happning? of is it freezing on step 5?
    Message was edited by: Scott\'y

Maybe you are looking for

  • Nightguy2000

    I need to transfer hi8 Sony tapes to elements 11. Do I need extra. Hardware

  • Cant log into box? will not authorise (thunderbird)

    My connection to my box account in Thunderbird seems to have been lost? And now will not authorise? Everything on the Box web site seems correct and I have not changed anything? I frequently send multiple or large attachments so this functionality is

  • Does anyone know what to do if the iMac will not accept cd's or dvd's

    I recently went on a trip and decided it was a good idea to shut down my imac and take out any dvd's i had inserted (which was the sims 3) i came back home and restarted my computer and everything seemed to be working fine.  i wanted to re insert the

  • Multiple Approvers based on roles selected for Target Application

    I have specific requirement to implement in Oracle Identity Manager. when the user request for a resource then he will be able to select multiple roles.For each set of roles the approver is different. if the user selects any one role of a set then it

  • Canvas color won't change, only remains white.

    I opened Illustrator and my canvas color is white. I tried changing it in the user interface but it just remains white. I checked and unchecked Overprint preview and nothing. I think maybe I hit a key or somehting but does anyopne know how I can chan