How to stop / delete a tween in progress?

Hi there
I have a movie clip that I am moving with tweens. When the user clicks a button it creates a new tween and the movie clip moves. However, I have another button that sets the position of the same movie clip. The problem comes when this button is clicked if the tween is in progress. The tween continues and my content moves out of view. Is there a way to stop or delete the tween when the second button is clicked?
Here is a simplified example of the relevant AS:
button1.onRelease = function(){
   new Tween(movieClip, "_y", Strong.easeOut, movieClip._y, movieClip._y + 200, 1, true);
button2.onRelease = function(){
   // code here to stop the above tween if it is in progress?
   movieClip._y = 0;
I'm using AS2 in CS3
Any help would be appreciated.

Ah, I've just added that stop() command to the button function above the new Tween line:
var tw:Tween;
button1.onRelease =  function(){
     tw.stop();
     tw = new Tween(movieClip, "_y", Strong.easeOut,  movieClip._y, movieClip._y + 200, 1, true);
button2.onRelease =  function(){
     tw.stop();
It seems to work nicely. Thanks for your help!

Similar Messages

  • How to Stop workflow which is in Progress status.

    Hi ,
    I have started a workflow while testing , now it has reached to the inbox of different agents.
    could you please suggest how to stop the workflow and rollback everything affected because of it .
    best regards
    abhijeet chitale

    You could use the transaction SWIA to manually complete workitems. If you use the the workitem ID of the workflow instance you set the status of the workflow to logically deleted.
    Other option is to use the object FLOWITEM with method statuschange to change the status to completed. Also go in there with the ID of your workflow instance.
    However, my question is why you want to do this? If you're testing you could also just execute the workitem in the inboxes. Undo work which is done has to be executed manually.
    Kind regards,
    Joost van Poppel

  • How do you delete a download in progress?

    I recently "bought" the premier episode of Mr. Sunshine.  It has taken forever to download and I keep stopping it.  I no longer want this - how do I delete it forever?  I can't seem to make it go away completely.
    thanks!

    Once an item enters the download queue, the user cannot remove it. Either let it complete the download (easiest) or contact the iTunes Store customer support department through the Contact page  (select the category and subcategory closest to the issue you're reporting and you'll find either an "Express Lane" button - just follow the instructions to get to the contact form - or an "Email Us" button)  and ask them if they'll remove the item(s) from your queue for you.
    Regards.

  • Emails on iphone 4s and macbook pro.  How to stop deleting on macbook when i delete from iPhone.

    I've got an iPhone 4s and a macbook pro.  My emails download to each device perfectly.  However, when I delete emails on my phone, it deletes them from the macbook pro and I don't want them to!  How do I change my settings to stop them from being deleted?
    Thank you

    So it seems that I can't change that??
    However, I also have an Ipad and the emails on that never get deleted unless I physically delete them!!  If I have to have the phone and macbook deleting automatically, can I set the ipad to also delete automatically??
    thanks

  • How to stop deletion flag / indicator from being set in a PM order

    I want to put a check before a service order (PM Order) is set the deletion flag and the deletion indicator. How can I do it? Is there any user exit available for this? The purpose of this is to prevent it from getting archived before a given condition is met. Please advise.

    Some Enhancements (CMOD/SMOD) suitable
    - (PBO type) IWO10006 "Maint. order: Fcode exclusion through cust. enhancement" EXIT_SAPLCOIH_006) to disable function code "LVMS"
    - (AT SAVE type) IWO10009 "PM Order: Customer Check for 'Save' Event" (EXIT_SAPLCOIH_009) you can raise an error after some checks if caufvd_imp-loekz EQ 'X'.
    You could also use implicit enhancement points in FM CO_ZR_ACTIVATE_DELETE_FLAG or K_ORDER_CHECK.
    Regards,
    Raymond

  • How to stop a rman backup in progress?

    OS: AIX 5.3 L and Oracle 10g R2
    I got panic when my scheduled rman backup (incremental level 0 plus archivelog) run too long and I want to stop the process. I could not find the rman doc mentioning how to use any rman command to do that, instead of just shutdowning the database instance.with ps -ef, there were just too many PID of oracle. Is there a way by rman to STOP the process?
    Furthermore, I had no idea why it happened. Last week when I did a full copy backup, it only took 23 minutes for 32G database, Today, I changed the scheme to a level 0 incremental, and it is still running after 5 and half hours. But it already created the archivelog, datafile backupset (checked by the DB control). How to find out what went wrong?

    I did not use any third party application with rman or TSM in my AIX. what is the tdpo? Killing at OS level is probably only thing I can do now. kill -9 PID#
    Message was edited by:
    user508054
    Message was edited by:
    user508054

  • How to stop the 'Auto adjustment in progress' message during start-up

    Hi,
    I am using an HP 2311x  monitor and when I start up the message 'Auto Adjustment in Progress' flashes twice before my Desktop appears.  Can I stop this message from appearing?
    Thanks and regards,
    2harts4ever
    " ... Nuff Said. Keep Smiling Because I'm Smiling Too!"
    This question was solved.
    View Solution.

    Hi  Mister_Do,
    I just solved my problem by running the HP Support Assistant and then its Troubleshooting Program for Monitors.  After it got done testing my monitor and its settings everything seems to be back to normal ....i.e, no more  'Auto Adjustment in Progress' messages. 
    Thanks and regards,
    2harts4ever
    " ... Nuff Said. Keep Smiling Because I'm Smiling Too!"

  • How to stop delete system stats in Mavericks OS X 10.9.3

    From time to time my iMac (late 2009) slows down and the reason seems to be an App named "system stats" as seen in the Activity Monitor on top of all other CPU Usage items. How can I avoid system stats to pop up again?

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

  • How to stop Deleting email from work exchange when deleting of iphone

    I have an iPad and iPhone 5 and would like to be able to delete work related exchange email from either device without deleting the email from my work station. My previous phone [Blackberry] allowed me to chose to delete only on the phone or both. Is this possible on either Apple device?

    You don't. That's the way Exchange Active Sync works. It fully synchronizes the two.
    The Blackberry allowed you to do that because all of your Exchange e-mail was actually going through another server before it ever got to your phone. Blackberry uses a middleman server (for lack of a better term) to handle communication. Your BB was never actually communicating directly with your Exchange server.

  • How to stop FIM from Deleting Connections?

    There is something that i need, but have ben unable to do... and that is to keep my BDC data even when there is no connection. I have not been able to figure out how to stop deletes from happening... this is what happens when my service is down
    This is the result of the DeltaImport... It adds a SPS-Dummy object and removes all my objects, this causes all my fields in the user profile to become empty. I do not want this to happen. How can I configure FIM to not do this?
    This is the result of the DeltaSync...
    I have been working on this for days, and I just can't figure it out. I am going crazy!!! Please assist me.

    Hi Marc,
    Sorry for the typo. It's a BDC source, I use a WCF client to access a SQL Database (HR External System) that has 4 fields that are necessary to present in the Sharepoint User Profile. The issue occurs with a Full or a Delta Sync. The problem is that if the
    BDC source is not present the fields are deleted (I get a SPS-Dummy Added and all of the pbjects in the BDC Connector Space are deleted).
    I do not want this to happen. I do not want the User Profile Attributes/Fields to be empty/deleted if there is no connection I simply want them to stay what they are... I have two issues.
    1) Is that the even if i change my data on SQL Server side, the changes do not get picked up by the sync. Since the only field that is being tested for change is an ADid, since the id does not change the BDC does not consider them changes.
    2) If there is no connection I do not want the attributes to be deleted. I have not figured out a way to effectively do this.
    So my issue appears to be simple to solve, but after 4 days and hundreds of tutorial pages read I have yet to figure out a proper way to do this.
    Here is the pseudo-specification
    The Fields that come form the HR System (SQL Server) are to be presented in the user profile. If there is no connection to the BDC file the fields remain as they are until there is a connection and updates can be made. Changes to any of the fields are performed
    manually in the HR system. These changes must be picked up by the daily sync.

  • ITunes 10.4.1.10 how to stop downloads of free news pods?  (right click delete doesn't work) also can't scroll down list of downloads!

    (ITunes 10.4.1.10) How to stop downloads of free news pods?  (right click delete doesn't work)
    Also can't scroll down list of downloads so as to pause them.  Would like to delete them as ISP has download limit.
    Thanks in advance!  (this seems to be a dumb problem of the software having a life of its own!)

    I have been talking to Apple support about this very problem. So far they have asked me to disable both Firewall and Anti Virus software (Windows Firewall and ESAT NOD32 anti virus) - this didn't work. Rebuild my library - this didn't work. Un-install all Apple applications and re-install - this didn't work. I have created a second user account on my PC and from that account (both accounts set as Administrator) I can activate Genius. This suggests to me that the problem is possibly linked to my original User Account, which is the one I always use. I am waiting for the next update from Apple and will post an update if/when the problem is resolved.
    What I also notice is about 2 seconds in to Step 2 of the Genius activation, the progress diagonal lines bar stops, and then starts again. As soon as I see this short freeze I know that the activation will fail.

  • I was downloading a movie on my iPad and I stopped downloading it and I want to delete it and it won't. How do you delete it in the iTunes for iPad

    I was downloading a movie on my iPad and I stopped downloading it and I want to delete it and it won't. How do you delete it in the iTunes for iPad.

    If you tap and hold down the icon - and the X does not appear on the icon - you will not be able to delete it without totally downloading it. Finish the download and then delete it.

  • How can I delete an old Icloud address to stop my Iphone 4gs from constantly asking me to sign in.I do not have an id or password to enter and delete?

    How can I delete an old Icloud address to stop my Iphone 4gs from constantly asking me to sign in.I do not have an id or password to enter and delete?

    Hi Peter, unfortunately you have to delete the account. If you don't remember the password anymore, then please go to https://iforgot.apple.com/ to reset the password.
    With kind regards,
    David

  • How do I delete and stop online storage?

    Hi
    For the last day or so PE9 has been running terrible.
    I finally gave up and went back to PE8 and it isn't running right either.
    Then I noticed that it said that my online back up was full.
    I have never intentionally used online backup but I'm pretty sure that what ever it is doing is why they are both running so bad.
    I don't want to store my stuff online and I can't find out how to stop it from doing what it's doing and delete what's there.
    It only took about 12 files to fill it up anyway.
    Not ever a whole video.
    I clicked on the manage your online storage and removed all the stuff but I didn't know if I should click the remove items from hard drive button.
    I don't want the stuff removed from my hard drive, it they are talking about their hard drive then OK.
    When I restarted the program it still said it was full.
    So I'm guessing I have to say remove it from the hard drive but I don't want to risk my files until I know what I'm doing.
    Both of these programs have always run fine on my computer.
    I must have selected something to start this, now I just want it to stop.
    It used to ask me to log in, now it's doing it on it's own.
    Any help welcome.
    Mike

    The items you are looking for should be under the Edit> Preferences in the Elements Organizer (your first screen shot) - NOT in Premiere Elements itself (your second screen shot).
    But the confusing point is that your Organizer menus are not showing !!!
    I've had this myself in the past and I think it is caused either when you apply a too large a custom font size in the Window Color and Appearance dialog;
    Or when you have selected a too large DPI size (or too large a custom DPI in Display properties;
    If you can recall doing something like that I suggest you reset them and your menus should reappear.
    For a quick workaround if you look at the following image closely you can see to the left of my red pointer arrow a '>>' symbol. If you click that '>>' all the Organizer menus will reappear as one large menu tree.
    Whichever method you choose to fix the issue, the menu option you are looking for is as shown here:
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • How to I get my Mac to stop deleting the pictures off of my phone that I sync to the computer?

    When I first uploaded pictures to my Mac from my iPhone, it asked me if I wanted it to delete the pictures off of my phone as they uploaded, and I said yes.Now, every time I upload pictures, all the pictures from my phone get deleted as they sync onto the computer. I cannot figure out how to stop this and IPhoto does not give me the option to change it. I want to be able to sync the photos to my computer without them being deleted from my phonee. Can anyone help me?

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

Maybe you are looking for