A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Drag within custom boundaries HELP!

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Posts
    3

    Drag within custom boundaries HELP!

    Hi All,

    I hope there are some clever sods that will help me solve this.

    My problem is :

    I am trying to create a movieClip that will always stay on a track. You get me, or have a lost you?

    Picture the London underground map, I want a little circle that will follow the track BUT also follow my cursor.

    So if I drag the circle to the right it will go to the right but always stay on track even if there are slopes or corners in the track.

    Please help!

    Thank you all in advance!

    AS2 preferred, but I'm willing to migrate to AS3 for this.

    Stephen

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    have to try a simple gotoAndStop? ie: playing a timeline based on mouse position.

    gparis

  3. #3
    Junior Member
    Join Date
    Nov 2007
    Posts
    3

    Don't think it will work.

    No, I need a dynamic way of doing it..

    Thanks though,

    When I got the brief, I thought there would be a way of flash doing it no-problem but I think it's getting harder and harder to find a proper solution.

    A point I didn't really make clear (which was pretty stupid) is that I need to be able to drag the circle around the Map. Similar to that of Google Maps Directions.

    Please help!

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    I didn't check the source but this looks close to what you want:
    http://www.peterjoel.com/Samples/index.php?go=dragline

    gparis

Tags for this Thread

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