Drag and drop question
i'm sure newb question can't figure out. can't seem drop movieclip location want it.
i have movieclip contains text , if collides movieclip stop drag reason won't it.
here code drop
function stopdrag(event:mouseevent)
{
if (cityname.hittestobject(objhit))
{
trace("work")
event.currenttarget.stopdrag();
}
}
if thing should trigger stopdrag on higher layer thing dragging , overlays it, stopdrag won`t happen.
make sure while dragging movieclip have enter_frame function put in front of other displayobkects on stage
use stage.numchildren , setchildindex achieve this.
More discussions in ActionScript 3
adobe
Comments
Post a Comment