iceherosubzero Posted February 25, 2015 Share Posted February 25, 2015 Hello All, I have a single image sprite say A (which is not in any group) and a few (3) other image sprites (in a group) say B. A's depth is below B's depth. My question is -> when I drag A I have kept its input.enableDrag set to (false,true) so that it is brought to the top when dragged. Now when I make the B visible=true. The A's is shown over the B's How can I change A's depth when B is visible so that A is again below B's depth. I tried swapChildren and getChildIndex but I am unable to swap a Image with a Group. Any help would be great. Thanks iceheros Quote Link to comment Share on other sites More sharing options...
GBeebe Posted March 24, 2015 Share Posted March 24, 2015 Wow, I can't imagine what you're working on, but it sounds like setting the DOM object.style.zIndex properly might do the trick. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.