1 Reply Latest reply on May 27, 2014 11:05 PM by Zapt

    Drag and Drop "Open page to drop 3 successive objects"

    jasper1

      I created a script in Adobe to make a drag and drop. Everything works, but my problem is to cause the opening of a page after 3 successive objects on the drop. Would you have the solution?


      my script:


       

      // insert code to be run when the symbol is created here

      yepnope({nope:['jquery-ui-1.10.4.custom.min.js'], complete: init});

       

       

      function init(){

                      //Use the code! Draggable! Droppable!!

                      sym.$('ourson').draggable({opacity:.5, revert:'invalid'});

         //Droppable... on the target!

      sym.$('Rectangle2').droppable({drop: function() {sym.getSymbol('ourson').play();}});

       

         //Use the code! Draggable! Droppable!!

                      sym.$('girafe').draggable({opacity:.5, revert:'invalid'});

         //Droppable... on the target!

      sym.$('Rectangle2').droppable({drop: function() {sym.getSymbol('girafe').play();}});

       

         //Use the code! Draggable! Droppable!!

                      sym.$('ballon').draggable({opacity:.5, revert:'invalid'});

         //Droppable... on the target!

      sym.$('Rectangle2').droppable({drop: function() {sym.getSymbol('ballon').play();}});

       

       

       

       

       

      missing the end

      ?????????????????????????

      ?????????????????????????

      ????????????????????????

      missing the end


         }