DragandDrop can't kill the drag function over correct answer

  • viki9
  • Novice
  • Novice
  • viki9
  • Posts: 16

Post 3+ Months Ago

Ok this seems to be a very basic problem and a very easy problem for you guys out there but i really can't get it to work :?

Ok here is the thing
i created a drag and drop function where the user drangs the toy_f movie clip onto the cabinet_H movieclip. when it is correct it will send out a respone. Ok now the problem is i can't kill the toy drag function :twisted: when it is on correct location which is the cabinet_H. I want it to lock and go alpha. I just can't kill that function and make it into alpha. please help
this is the code

Code: [ Select ]
on(press){
    startDrag(this);
}

on(release){
    stopDrag();
    if(_droptarget eq "/cabinet_H"){ // check if correct
    this.obj.alpha=0.5;
        //nextFrame();
        //correct tanda tick
            _root.toy_Res.gotoAndStop(2);
            }else{
                //blank no respone
            _root_toy_Res.gotoAndStop(1);
            //function to snap back
            this._x=73.3;
            this._y=463.9;
}
}
  1. on(press){
  2.     startDrag(this);
  3. }
  4. on(release){
  5.     stopDrag();
  6.     if(_droptarget eq "/cabinet_H"){ // check if correct
  7.     this.obj.alpha=0.5;
  8.         //nextFrame();
  9.         //correct tanda tick
  10.             _root.toy_Res.gotoAndStop(2);
  11.             }else{
  12.                 //blank no respone
  13.             _root_toy_Res.gotoAndStop(1);
  14.             //function to snap back
  15.             this._x=73.3;
  16.             this._y=463.9;
  17. }
  18. }


please help !!!!

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.