A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Dragging a MC with limitations?

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    54

    Dragging a MC with limitations?

    I know this is a painfully simple question, but I have something like this:
    Code:
    on (press) {
    	startDrag(this);
    }
    on (release) {
    	stopDrag();
    }
    And what I'd like to do is set limitations so as the image is being dragged, it can't go past certain X/Y limits that I specify. How should I set this up?

  2. #2
    Member
    Join Date
    Jan 2001
    Posts
    54
    Ha! Never mind, I just dicsovered the:
    Code:
    startDrag(this, false, 0, 0, -200, -200);
    arguments.

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