A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Dynamic Drag boundaries - AS2

  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    96

    Dynamic Drag boundaries - AS2

    Hi there! I am working on a project where I have a movieclip that the user can dynamically scale with a slider and drag around the stage. I am having trouble figuring out how to set the boundaries for the drag.

    As the image scales up, it extends beyond the bounds of the stage, so sometimes it needs to be able be dragged beyond the stage, the amount that it goes off the stage varies based on the x/yscale. I would love it that regardless of what scale the user wouldn't be able to drag it off the stage completely. Hopefully that makes sense, it's harder to explain than I realized!

    Any ideas on how to make the drag boundaries dynamic?

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    You can definitely get help but you have to post your code or your fla so we know we know how you are trying to do it.

    Here are a couple good drag and drop tutorials. Your code should look something like these:
    http://www.kirupa.com/developer/acti...t/dragdrop.htm
    http://www.swinburne.edu.au/design/t...n-Flash/ID-37/

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