Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

new2gsock

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by new2gsock

  1. Here's my dragdrop code:
    sym.$('card2').draggable({opacity:.5,revert:'invalid'});
    sym.$('droptarget2').droppable({
    accept:sym.$("card2"),
    drop: function() {
    sym.getSymbol("card2").play();
    sym.getSymbol("droptarget2").play();
    }
    }

    );

    I want to have 2 different actions happen depending on the filename.

     

    ie. 

    if (droppedfilename=="qs.png") {

    // accept and fade out

    } else {

    // don't accept

    }

    How do I detect the filename of the dropped image.

×