Can someone please help me! I have a mc inside an mc that has code attached to drag the outer mc… here is a diagram:
mc COOL STUFF
|–mc RED TAB (code is attached to this to drag the COOL STUFF mc)
I can’t get the drag and drop code to work! I am referencing a mc that is higher in the heirarchy, is there a problem with this?
Here is the code attached to mc RED TAB:
on(press) {
trace("hit");
startDrag("_root.mcExtra");
_root.zIndex++;
_root.mcExtra.swapDepths(_root.zIndex);
}
on(release){
stopDrag();
}