30 Replies Latest reply on Mar 7, 2014 4:00 AM by Saurav

    Drag and Drop symbol action issue! Help!





      I am constructing a risk radar and am looking for an object to change state when put on the middle of a target. And once removed from the middle of the target, to change back to its original state, I so far have this code:





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

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





      function init(){



                //Use the code! Draggable! Droppable!!













                //Droppable... on the target!

                sym.$('Target').droppable({drop: function() {sym.getSymbol("risk3_orange").play();}});




      However, when I remove the object from the middle of the target ('Target') it does not change back and then changes back and forth whenever moved from then on,



      Can you help?