0 Replies Latest reply on Dec 9, 2015 2:47 AM by mo_leung

    Help! How to Create Droppable Trigger in Edge Animate? (Drag & Drop -> Play)

    mo_leung

      I want the animation to stop at a certain point, and then resume playing once a draggable object has been dragged into a droppable area. I'm using edge animate for this.

       

      Link to files (59kb): dog 4.zip - Google Drive

       

      Here is my code so far:

       

      if(jQuery){
      alert("cp");
      }
      
      sym.$("dogSVG").draggable({revert:'invalid'});
      
       sym.$('Rectangle').droppable({
        accept:sym.$('dogSVG'),
        drop: function () {
        }
        }
        );
      


      Typing in

      sym.$('Rectangle').droppable({drop: function() (sym.play();
      }
      

       

      does not work.

       

      Any idea how I can fix it?

       

      Ty for any replies in advance.