Trouble with parallel add and remove effect in TileList

We have a TileList of images.  As the user drags a new image along the list (deciding where to drop it) a blank frame drops in to show them where it will be inserted when they drop it.  Therefore, I have to add and remove simultaneously, while still dragging.  For example if they are at index zero, a blank frame is in index zero.  As they move to 1, the blank frame appears to move from index zero, to index one, as the image that was at index one appears to move to index zero.  But what I'm really doing is just removing and then adding the blank frame.
I think the following code should accomplish this.  And it works, most of the time.  Every so often, there is a delay where is does the REMOVE, and then waits until the Back.easeOut tween is complete, and then does the ADD.   It is intermittent.  Any ideas, or is there a better way to do it?  Thanks
MXML code:
    <mx:Sequence id="myEffect">
        <mx:Parallel>
            <mx:Move
                duration="600"
                easingFunction="{Back.easeOut}"
                />
            <mx:RemoveItemAction id="dcmRemoveItemActionTag"
                                 />
            <mx:AddItemAction  id="dcmAddItemActionTag"
                               />
        </mx:Parallel>
    </mx:Sequence>
actionscript code:
                _sharedMedia.removeItemAt(_sharedMedia.getItemIndex(_dropPlaceHolderimage));
                _sharedMedia.addItemAt(_dropPlaceHolderimage,dropIndex);

hi,
You could do this a couple of ways, you could have a slight delay set on the remove effect so that it doesn't interfere with the ease function.
or
You could add the item instead of an empty frame, on the dragdrop event you don't need to do anything if you get a dragexit triggered then you simply remove the item completely.
David

Similar Messages

  • Trouble with Creative Cloud and After Effects

    Hello,
    I'm having a lot of trouble lately with the Creative Cloud desktop application. I've uninstalled and reinstalled it several times and it keeps getting stuck here:
    And nothing loads!
    I was also having a problem with After Effects. Every time I'd load it, a window would pop up saying, "After Effects can’t continue: unexpected failure during application startup"
    Any help?
    -Nicco

    Moving this discussion to the Creative Cloud Download & Install forum.
    Nicolas Hirajeta please see Creative Cloud app doesn't open and hangs on spinning progress wheel - http://helpx.adobe.com/creative-cloud/kb/creative-cloud-app-doesnt-open.html for information on how to resolve your current error.

  • I have a macbook and was having trouble with safari so I removed it and am trying to re-download but it says snow leopard and lion are too big. which version of safari can i download?

    I have a macbook and was having trouble with safari so I removed it and am trying to re-download but it says snow leopard and lion are too big. which version of safari can i download?

    Which operating system are you running? Not sure, click the apple on the left of the menu bar, the click about this mac. It will say version 10.6.x or 10.7.x.

  • Uninstall firefox after trying add and remove akso Mozilla,s instructions

    I am using Mozilla Firefox version !8.0(x86 en gb on windows Xp) I wish to un-install Mozilla Firefox. I tried the usual "Add and Remove" from Control Panel, this did not work which in its self is odd. I then tried the Mozilla site and followed those instructions which failed also.It makes me feel uncomfortable that removing a program is made so difficult
    Please advise
    Mike R

    Seeing a couple of errors in the system log is not that unusual, but the number you are seeing is indicating a real problem.
    Did you double-click any of the errors in System Events? It would open a pop-up and give more detailed information on the error and usually has a link to the Microsoft help website concerning that specific error. It is likely the "msi" error is significant, as that is a Microsoft installer file (often used for uninstall also). It seems that either Control Panel is messing up or the msi process is crashing for some reason. The information in that error may contain the answer. If there are error numbers, you could do a search for that error number.
    When you say you "re-formatted" your computer, what exactly do you mean? Did you re-install Windows?
    SparkTrust PC Cleaner could possibly be the culprit. Security software, by design, watches for processes that try to make changes to your computer. Along with cleaning, it also claims to "optimize" the registry, which can lead to big trouble if a critical key is removed by accident. I use Registry Mechanic, but with any cleaner, I never allow it to make changes until I have a chance to examine each proposed change. The first "automatic" registry cleaner I used 15 years ago did severe damage to my machine. Windows became unbootable because of registry damage. I ended up having to re-install Windows from scratch.
    PC Cleaner should not have disabled System Restore. If you haven't made any large installs or changes, System Restore simply may not have created a restore point. But there should have been at least the original when you installed Windows. To verify the settings, right click on "My Computer" and choose "Properties". There should be a System Restore tab where you can verify the allowed size and whether or not it is active.
    It is generally a good idea to manually tell System Restore to create a restore point on occasion, on a day when everything is working as it should.
    Is there a way to temporarily disable SparkTrust? It might be possible it sees the uninstall action as some kind of malware and won't allow it to run. That is simply a guess, but it is generally good policy to disable active security software during an installation (of trusted software), as the security software may interfere with the processes.
    I really don't believe Firefox is the culprit here. I think there is a problem with Windows. I have been using Firefox for well over a decade and have never had an uninstall problem.
    If you can copy and paste error details for the event log, I may be able to learn more.

  • Cannot uninstall I tunes. In control panel add and remove programs it will not give me the option to remove any of the I tunes. In program files it tells me access denied to remove any of the related items. I have tried using the removal methods from i tu

    My i tunes will not work at all. I have tried all the steps given to remove my I tunes player but in my control panel, add and remove programs it does not give me an option to remove any of the apple/ I tunes. I tried to go to program files and remove all the files but access is denied. This all started about 1 1/2 years ago and with every i tunes update i got more and more errors or problems until it stopped working. At one time i could remove and reinstall i tunes to try to fix it but now i cannot do anything. I believe one of the last  was i could not open i tune because it was being used or was on another network, not 100% sure its been so long and frustrating I quit trying 6 months ago. Hopefully someones got some help !!!
    Thanks I appreciate your time; Philip

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • How do you add and remove links to websites in folders on Safari?

    How do you add and remove links to websites in folders on Safari?

    For clarification, works like a bookmark of website only it is listed in toolbar with "Most Visited", "Latest Headlines", "News", and "Popular".  I have done it before but can't find it for the life of me.
    Thanks!

  • How do I do to add and remove Shape3D objects dynamically from TransfGroup?

    Hi, everyone,
    How do I do to add and remove Shape3D objects dynamically from TransformGroup?
    I have added two Shape3D objects in the TransformGroup and I wanted to remove one of it to add another. But, the following exception occurs when I try to use �removeChild� :
    �Exception in thread "AWT-EventQueue-0" javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be removed at javax.media.j3d.Group.removeChild(Group.java:345)�.
    Why can I add Shape3D objects and I can�t remove them? Do I need to add Shape3D object in the BranchGroup and work only with the BranchGroup? If I do, I think this isn�t a good solution for the scene graph, because for each Shape3D object I will always have to use an associated BranchGroup.
    Below, following the code:
    // The constructor �
    Shape3D shapeA = new Shape3D(geometry, appearance);
    shapeA.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shapeA.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shapeA.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shapeA.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    Shape3D shapeB = new Shape3D(geometry, appearance);
    shapeB.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shapeB.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shapeB.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shapeB.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    BranchGroup bg = new BranchGroup();
    bg.setCapability(ALLOW_CHILDREN_READ);
    bg.setCapability(ALLOW_CHILDREN_WRITE);
    bg.setCapability(ALLOW_CHILDREN_EXTEND);
    TransformGroup tg = new TransformGroup();
    tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    tg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    tg.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
    tg.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
    bg.addChild(tg);
    tg.addChild(shapeA);
    tg.addChild(shapeB);
    // The method that removes the shapeB and adds a new shapeC �
    Shape3D shapeC = new Shape3D(geometry, appearance);
    shapeC.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shapeC.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shapeC.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shapeC.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    tg.removeChild(shapeB);
    tg.addChild(shapeC);Thanks a lot.
    aads

    �Exception in thread "AWT-EventQueue-0"
    javax.media.j3d.RestrictedAccessException: Group:
    only a BranchGroup node may be removed I would think that this would give you your answer -
    Put a branch group between the transform and the shape. Then it can be removed.
    Another thing you could try: This doesn't actually remove the shape, but at least causes it to hide. If you set the capabilities, I think you can write the appearance of the shapes. So, when you want to remove one of them, write an invisible appearance to it.

  • How to remove Java Applications from "Add and Remove Programs" list?

    I have deployed my Java applications (both JWS and Applet) via JNLP with allow-offline option enabled and without installer-desc option specified.
    My questions are:
    1. An entry is added to the Add and Remove Programs list after launching the application via JNLP. Is it due to the specification of JNLP or JWS? Is there anyway to prevent this behavior?
    2. I removed my application by clearing the cache via Java Control Panel but the entry for the application is still listed in Add and Remove Programs. How can I remove the entry in the Add and Remove Programs?
    I have tried following methods but neither works:
    1.Go to Add and Remove Programs, and click [remove] button to the right of my application.
    *Warning message like 'Application cannot be uninstalled completely' is thrown.
    2.Follow instructions listed @ [Microsoft Online Support site|http://support.microsoft.com/kb/314481/en-us] to remove my application manually via Windows registry.
    *Couldn't find appropriate registry entry to delete.
    Thanks in advance!

    Hi, guys!
    This issue has been officially approved as a new bug (Bug Id: 6946221) for the JDK 1.6_20(might include any release below) release.
    It will take a couple of days for it to be shown up in the external Bug database. However, once it becomes available for viewing on external Bug database.I would like to encourage your valuable participation to vote on this bug to get it fixed ASAP by the SUN developer teams.
    Java Bug Database @
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221]
    Voting for the bug @
    [http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221]
    Thank you for your cooperation!
    Edited by: Jay-K on Apr 23, 2010 12:14 AM

  • Add and remove modules in Apache

    Is it possible to add and remove modules within Apache (actually compile an relink Apache) with a source download form Apache.org (1.3.28?) and incorporate the necessery modules and configuration from Oracle?. I have looked for some kind of documentation for this, but ended up with nothing. Can anybody explain this?.

    If you really understand apache and how oracle implements the apache server then yes you could add/remove modules if you have the source code from oracle. I dont think that you can download apache1.3.28 from apache.org and expect to use that source to build an executable that can plug into oracle.

  • ADOBE Forms Central - add and remove rows (PDF Form)

    Hello, I am currently evaluating ‘ADOBE Forms Central' to set up a form with editable fields. I have set up a test form in ADOBE Forms Central and was unable to insert an option to add and remove rows similar to the print screen attached. Is this possible to do using ADOBE Forms Central or should I be using
    a different ADOBE application? Thank you, Liz

    A dynamic XFA PDF form can do this. You can create such forms with LiveCycle Designer, which was included with the Windows version of Acrobat Pro prior to version 11. It is now a separate product.
    XFA forms can't be used with FormsCentral, however, only Acroforms can.

  • HT1657 I rented Trouble with the Curve and haven't it yet and I when I went to watch the movie it tells me the file can not be found -  please help

    I rented Trouble with the Curve and haven't it yet and I when I went to watch the movie it tells me the file can not be found -  please help

    Yes, thank you.  My apologies, I was typing one handed and did not add that. 
    Anyway, I have tried deleting the cache, deleting my pics and then re-syncing, etc. and nothing is working This is very frustrating, as I had no problems up until about 2 weeks ago, and now all of a sudden, I have this issue......UGH!

  • Javascript array ;Add and remove elements without using push and pop

    Hi
     I need to perform add and remove  operation in Javascript with following scenarios
    i) Add element, if element does not exist in array(javascript)
    ii) Remove element, if element exist in array(javascript)
    Without using push and pop method how to achieve this?
    Regards
    Siva

    Completed the Scenario.

  • Add and remove Java

    Hello there..
    i am in msn communities where you can have someone look over your hijack..this and that..
    anyways..i had Judy hijack for me..and she said to uninstall Java..
    well when i went to add and remove programs..there is no remove button..
    She thought i should ask you experts over here what to do..
    Thank you so much..
    Hugs,
    Bren

    i am in msn communities where you can have someone
    look over your hijack..this and that..
    anyways..i had Judy hijack for me..Rephrasing: you want to say that your MSN was hijacked?
    and she said to uninstall Java..Nonsense.
    Anyway if you have problems with Java installed on your machine I suggest you to download and install the latest JRE from Sun:
    http://www.java.com/en/download/manual.jsp

  • Having trouble with wav files and sample rates

    Hi ,I am having trouble with wav files and sample rates .I have been sent multiple projects on wav as the main instrumental ; I wish to record in 48.000kHz .Now comes the problem.When I try to change the project to 48k It seems to pitch up the track.I can't have them send the logic/project file as most have outboard synths,different plug ins etc.This particular case the producer has recorded the synth task in 41.000 kHz .My successful outcome would be to be able t create a project file in 48 kHz .And NOT pitch up whne I add the instrumenta wav file .Any help would be gratefully recieved,this is my first post so any mistakes I may have made go easy 

    You'll have to convert the actual synth audio file file that the producer gave you to 48kHz. You can do this in the audio Bin in Logic.

  • Trouble with the PS CC2014 3D Effects - Intel HD Graphics 3000 that doesn't work properly?

    I Have a MBP 13 inch 2.8 GHz Intel Core i7 late 2011 and I'm Having trouble with the PS CC2014 3D Effects crashing when trying to apply a New 3D extrusion, are there any solution regarding the Intel HD Graphics 3000 that doesn't work properly?
    Thanks!

    Look at this document. It should help you troubleshoot and it suggests settings to try out.
    Photoshop CC and CC 2014 GPU FAQ
    While the stock advice for Windows users is to go to the Intel site for updates, Mac users can only get their drivers in the Mac OSX system updates. So you need to be sure your OS is up to date. If you have an earlier version, like 10.7 or 10.8, it is possible an upgrade to 10.9 might help.

Maybe you are looking for

  • How can I view information about an image, such as the file name and exposure,  on the Ipad?

    how can I view information about an image, such as the file name and exposure,  on the Ipad?

  • Waiting Reply

    Hi Dears,            ow i'm in critical position could u suggestion regarding "how to  upload the  excel sheet  customer master data  using BAPI ?" i will be waiting for reply . regards eswar.

  • Are there any sites where you can download zipped .band files?

    I know there are demo song downloads around, but I'm looking for any site that has collections of zipped .band files of public domain song arrangements, free or not. If there aren't any, there should be. I would love to be able to download, and play

  • Use of strategy 51

    Hi, We have a scenario where the finished material (GA_FINISH) is assembled as per the customer requirement A level below that we can produce & maintain in stock (GA_ASSLY) Process planned as follows GA_FINISH (use strategy 51) Create PIR for GA_FINI

  • 10 g AS (How to restart)

    Hi My database is up but how to restart Application server ? (Environment AIX 5.3, 10 g ) Regards Den