Drag and drop layers

Hello, I divided a box layer into upper and lower, and put the drag and drop area into the middle layer, the purpose is to let the dolls drop into the box, but the HTML5 preview is still on the top layer, please tell me how to set it to achieve my thoughts?1 2 3

Hi Yuanyuan,

When dragging and dropped, a drag source will be raised to make sure that it’s above any drop targets or other objects .
You can use JavaScript in the slide On Load event to change the z-order of the top layer so that it’s above the drag source:

prez.object('top_shape').node.style.zIndex = 2000; // any value in the range [1500 - 2499]

Sample project: z-index drag.approj (216 KB)

Regards