Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Drag and Drop Feature in Flash

$
0
0

I have multiple elements on my artboard that include the Drag and Drop feature allowing for the elements to be placed on top (overlapping) one another. When the third or fourth element is selected the previous element is forced behind its previous element. Is there anyway to keep the previously placed elements from repositioning, just keeping them stationery. Below is the code applied to the button instance which is inside of its respective movie clip.

 

 

on (press, dragOver) {

          startDrag(_root.Element2);

}

on (release, rollOut, dragOut) {

          stopDrag();

}

on (press, release, dragOver, dragOut) {

          _root.x +=9;

          _root.Element2.swapDepths(_root.x);

}


Viewing all articles
Browse latest Browse all 13519

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>