How do I refresh an animation so that it resets back to the beginning?

So I created a drag and drop animation where the elements dissapear after they are dragged onto the target. I want to include a reset button that sets the animation back to the beginning so the user can play the drag and drop game again. Is there code I can include that resets the animation the same way that happens when you hit the browser refresh button?

Here is my current code, the draggable objects aren't set on the timeline, they just live on the stage
   function init(){
   // apply the draggable JQuery UI plugin to the Symbols on the stage
   sym.$('TIF_sym').draggable({
   start: function(e){},
   drag: function(e,ui){}
   sym.$('DXF_sym').draggable({
   start: function(e){},
   drag: function(e,ui){}
   sym.$('DWG_sym').draggable({
   start: function(e){},
   drag: function(e,ui){}
   sym.$('SHP_sym').draggable({
   start: function(e){},
   drag: function(e,ui){}
   sym.$('DEM_sym').draggable({
   start: function(e){},
   drag: function(e,ui){}
   // apply the droppable JQuery UI plugin to the Symbols on the stage
   sym.$("DataLayerObject").droppable({
   drop: function(e, ui) {
             // Hide Target Element Grey Box.
             sym.$("FirstDrag").hide();
             sym.$("Text").hide();
             // Hide file box
             var hideEle = "#" + ui.draggable.context.id;
                       console.log(ui);
                       $(hideEle).hide();
             //Play timeline for each data layer when correct file is dragged onto object
             sym.getComposition().getStage().getSymbol("DataLayerObject").getSymbol($(ui.draggabl e).attr("id").substring(6) + "_layer").play();

Similar Messages

  • I have just re-installed itunes.  The previous use is still listed.  When I try to login with my account, Apple says to view my account. When I do that, it revers back to the other user.  How do I get the other user off of my system so that I can use mine

    I have just re-installed itunes.  The previous user is still listed.  When I try to login in with my account, Apple says to view my account.
    When I do that, it reverts back to the other user.  I want the other user totally off of my system.  How do I do this?

    Try Store > Sign Out followed by Store > Sign In...
    tt2

  • Hello I'd like to know how to walk redo my iMessage on my ipod touch 4th . I connect and then says to choose an email address and it says Check and this is the me that his brings back on the menu. So please help me

    Hello I'd like to know how to walk redo my iMessage on my ipod touch 4th . I connect and then says to choose an email address and it says < Check> and this is the me that his brings back on the menu. So please help me!

    You can try
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    However, some other users have reported that did not work. No real solution has been posted here yet

  • When i play back an mp3 dj mix i,ve burn,t to cd in my car when i turn the engine of and then restart the car the cd starts back from the beginning how do i solve this problem so that when i turn the engine on end off the cd plays from the same place

    when i play back an mp3 dj mix i,ve burn,t to cd in my car when i turn the engine of and then restart the car the cd starts back from the beginning how do i solve this problem so that when i turn the engine on end off the cd plays from the same place it did before i turned the engine off

    It could be that the CD player will only playback "Redbook" CD's from the previous position.
    And starts mp3 type CD's from the beginnig.
    However.. it's not Logic related.
    pancenter-

  • Can anyone tell me how to send a PDF file so that it opens up in the body of the email itself? Thanks

    Can anyone tell me how to send a PDF file so that it opens up in the body of the email itself? Thanks

    That is a function of the recipient's e-mail software understanding what your software sent.  If it doesn't it will always show as an icon or attachment.   It is also a function of both your internet provider and their internet provider accepting messages of that size, and a function of their download attachment settings in their e-mail program.  There is no way to guarantee it will appear inline in the attachment.   The best you can do is attach with Windows Friendly format.  To do that, use the attach toolbar icon that looks like a paperclip, (View menu -> Customize toolbar if invisible) on Mac OS X Mail when composing the message.   A checkbox appears in the file dialog box's bottom to make it Windows friendly when you navigate to pick the PDF file.  That makes it as universally compatible as possible.  It still may not appear inline, but at least you are less likely to be incompatible.

  • I bought an iPhone while overseas, but I'm back living in the states now. It seems that FaceTime and iMessage is not enabled on it. How do I get it to work now that I'm back in the states?

    I bought an iPhone while overseas, but I'm back living in the states now. It seems that FaceTime and iMessage is not enabled on it. How do I get it to work now that I'm back in the states?

    I did buy it from someone in Jordan. So they might have got it from KSA, or UAE, or it even might be the same rules in Jordan. I don't think the imessage works even, every time someone sends me a message from their ipad it says "Not delivered". Maybe I am wrong?

  • The new forced upon me upgrade for iPhoto '11 never opens. After I do all that is recommended, it sends me back to the beginning. How can I get it to work?

    I am using a mac mini version 10.9.5 which I have just updated. Now when I try to open i photo, all I get is a message telling me to "prepare" my library. I have installed and run the iPhoto library upgrader, but it only sends me back to the beginning telling me to install the upgrader (which has already been installed.)
    How can I actually get the upgrader to prepare my libraries and actually see photos?

    What version of iPhoto are you currently running and what version did you have previous to the upgrade to 9.5.1?
    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • How to design and implement an application that reads a string from the ...

    How to design and implement an application that reads a string from the user and prints it one character per line???

    This is so trivial that it barely deserves the words "design" or "application".
    You can use java.util.Scanner to get user input from the command line.
    You can use String.getChars to convert a String into an array of characters.
    You can use a loop to get all the characters individually.
    You can use System.out.println to print data on its own line.
    Good luck on your homework.

  • When I click on the iCloud icon it says that it will download without additional charge because I've already purschased it but after that it goes back to the icloud icon and doesnt download. How can I download it?

    Im having trouble downloading the iMovie app on my iPad. When I click on the iCloud icon it says that it will download without additional charge because I've already purchased it(I did purchase it) but after that it goes back to the icloud icon and doesnt download. How can I download it?

    Hello bianca,
    It sounds like you are trying to download a previous purchase to your iPad but the item never downloads. I would recommend starting by closing all the apps that are running in the background.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that, sign out of your iTunes account in Settings > iTunes and App stores, and restart the phone and try again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • TS3899 I upgraded to IOS 6, I am unable to get into my Yahoo mail.  It accepts pw, and pops up and tells me how many e-mails I have and then goes right back to the sign on screen. verified that I can get in from laptop & wireless is functioning.any sugges

    I upgraded to IOS 6, I am unable to get into my Yahoo mail.  It accepts pw, and pops up and tells me how many e-mails I have and then goes right back to the sign on screen. verified that I can get in from laptop & wireless is functioning.any suggestions?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • How do I edit out a fence that is in front of the background???

    How do I edit out a fence that is in front of the background???

    Can you post the photo to help explain what you are talking about?

  • How can i install CC 12 so that i can back save from CC to AE 6

    How do i install CC 12 so that i can back save from the latest CC to cs6?

    Hi James
    Kindly post the screenshot of Creative Cloud app,
    In case you are not able to see any of the new app, here is what you can try:
    Disable startup items, services | Windows and check if you see After effect
    Start your computer in safe mode - Windows Help If you see After effect in safe mode, you can try to create another Admin user account
    Thanks,
    Atul Saini

  • Due to flash drive error on MBA my drive was wiped yesterday and OS re installed.  How to I get my bookmarks still on my iPhone back onto the mba

    Due to flash drive error on MBA my drive was wiped yesterday and OS re installed.  How to I get my bookmarks still on my iPhone back onto the mba

    Hi Nathanbeyondme!
    I have an article that can help you with that question:
    OS X Mountain Lion: Store your content in iCloud
    http://support.apple.com/kb/PH11421
    Safari bookmarks and tabs
    iCloud keeps your bookmarks and Reading List the same in Safari on your Mac, iPhone, iPad, and iPod touch. On your Mac, Safari also uses iCloud to let you open tabs that are open on your other devices. You set up the Safari service in iCloud preferences.
    If you are having issues with syncing these bookmarks, you will want to reference the following article:
    iCloud: Troubleshooting iCloud Bookmarks and Reading List
    http://support.apple.com/kb/ts4001
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • How do I start a streaming .flv at a point other than the beginning of the video file?

    I have a 1.5 hour flv video that is streaming from a
    Microsoft 2003 box with Wowza Media Server installed. Using
    Actionscript 3 and the FLVplayback component I would like to start
    the video at a point about 10 seconds from the beginning.
    This code snippet does not work:
    myVideoFile.seek(10);
    myVideoFile.play();
    Though the video seeks to the proper point in the video file,
    the play() call sends it back to the beginning. Thanks for your
    help!

    That's the ticket!
    <totallyRocks>Jamesabth</totallyRocks>

  • How can I get Firefox to take me back to the last Bookmark folder I was in like Internet Explorer instead of going back to the beginning each time??

    When i find a website using bookmarks in Firefox and then I want to look at another site in that same folder, especially in a subfolder, Firefox takes me back to the beginning of the bookmarks menu. With Internet Explorer, it takes me back to the same folder or subfolder I was in. For example, if I was wanting to search newspapers, especially if they are in subfolders, I want to stay in that same place. Firefox loses that place, unlike Internet Explorer, and takes me back to the beginning each time. Sometimes I have several layers of subfolders and it takes time to find that place again each time.

    A possibility is to open the Bookmarks Sidebar.
    Click the list icon next to the star on the Navigation Toolbar and click "View Bookmarks Sidebar" (Ctrl+B).

Maybe you are looking for

  • HUGE BUG printing Booklet from Acrobat Pro 11.0.10

    I spent an hour chatting with Adobe support in India. They could not solve this issue. I submitted a BUG REPORT at Adobe - Feature Request/Bug Report Form Here is the BUG Report: ******BUG****** Concise problem statement: Steps to reproduce bug: 1. E

  • How to set user InitialContext in Weblogic ?

    Hi , Below 2 questions : 1). We have an MDB which received an XML message with userId and SiteMinder token. We need to process that message to set the Initial Context in Weblogic.What is the best way to do that ? 2). Since,we have userId in the JMS x

  • Photo frame export from iphoto

    i bourght a digital photo frame recently but am having trouble exportin from my iphoto library. I need to export to the native resolution of the frame which is 480x234 to optimise the number of photos I can fit on the memory card (any larger is just

  • NCL 2.0 SP2 nautilus problem

    Hello, NCL 2.0 SP2 installed on SLED 11. Everything works fine: i can login / browse trees and contexts. But if i click after login in nautilus on "Novell-Services" two new windows are openend. In the first window i can see my tree, but a double clic

  • UNABLE TO TAKE THE REFERENCE DOC. OF DIFFERENT SALES AREA AT QUOTATION STA

    Hi, When i am copying from one sales area to another sales area at Quotation Stage . Iam getting the following Error as below : "Distribution channels deviate from each other. 13 and/or 11 (reference)" Message no. V2011 Process : First i have created