Flash XML - drag and drop
Posted on 2005-05-10
I am making a virtual stock in Flash, with a number of shelfs each containing some pallets.
I have made the pallets as mc's, and I would like to be able to drag and move to empty spaces on one of the shelfs.
When I get a little further, I will load the pallets positions and descriptive data from a xml file provided from a DB via a webservice, which I should write back to, when I move a pallet to a new space.
I hope you get the point...
So what I want, is some help to the actionscript for the dragging part:
when mc is dragged
if dropTarget = empty space
snap to emty space
(at some point - save new position to DB via a xml webservice)
snap to original position
I found a similar question here on Experts Exchange Q_20566450 - but an answer was never provided. Hope somebody can help.