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

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support