A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: draggable map perimeter - how to make perimeter?

  1. #1
    Senior Member
    Join Date
    Jun 2000
    Posts
    102

    draggable map perimeter - how to make perimeter?

    Hey guys,

    I'm trying to build this interactive map that is draggable in a mask, but I want the drag to stop at the edge of the map jpeg so it doesn't send it out of the mask.,..how is this done?...anyone know?

    Thanks
    Joey Anderson
    Mac Web Internet, Inc.,
    a web application developer and service provider.
    http://www.macwebinternet.com
    info@macwebinternet.com

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    The startDrag call accepts optional parameters for rectangular bounds for the drag.

    Full parameters are:

    mc.startDrag(lockCenter, left, top, right, bottom )

    So you would want to figure out where left,top,right and bottom are (relative the parent (_root?) of the clip you're dragging.

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    102
    I'm not sure where to put that code at...

    here's the file I'm workin with.
    Attached Files Attached Files
    Joey Anderson
    Mac Web Internet, Inc.,
    a web application developer and service provider.
    http://www.macwebinternet.com
    info@macwebinternet.com

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