A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: _droptarget

  1. #1
    Senior Member danleroux's Avatar
    Join Date
    Nov 2000
    Posts
    183

    _droptarget

    how do you check if a mouse is over a specific mc with _droptarget...I know I've done it before I just can't anymore

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Code:
    on (press) {
    	startDrag(this);
    	this.swapDepths(100);
    }
    on (release) {
    	stopDrag();
    		if (this._droptarget=="/target1") {
    		setProperty(this, _x, 444.8);
    		setProperty(this, _y, 133);
    		this._visible = false;
    
    	} else {
    		setProperty(this, _x, 76);
    		setProperty(this, _y, 128.3);
    	}
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center