A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: start + stop drag - am i missing something?

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    95

    start + stop drag - am i missing something?

    I want to have a small object follow the mouse vertically on rollover. For this I used:

    on (rollOver) {
    startDrag("object", true, -140.9, -51.0, -140.9, 117);
    }

    No problems there. Now I want the object to stop following the mouse when the mouse is not within a certain area of the screen. I tried the following, but the object keeps following the mouse:

    on (rollOut) {
    stopDrag();
    }

    Thanks for the help.

  2. #2
    Senior Member Qasim's Avatar
    Join Date
    Apr 2003
    Location
    Planet hopping!
    Posts
    271

    Hi,

    I think it'll automatically stop dragging after it reaches those extents. If Otherwise, how about adding }else{stopDrag()}

    Qasim
    Never argue with an idiot. They drag you down to their level, then beat you with experience!


  3. #3
    Member
    Join Date
    Jan 2002
    Posts
    95
    No luck

    Maybe you'll have more luck with it than me... I've posted the fla if you wouldn't mind having a look.
    Attached Files Attached Files

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