A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Two drag-related questions

  1. #1
    Senior Member
    Join Date
    Feb 2003
    Posts
    129

    Two drag-related questions

    Hello,

    I have two drag-related questions.

    The first one is how to rotate an object by clicking and holding on it, then moving the mouse round in circles. Think of a clock face, and the user clicking and holding on one of the hands, then spinning it around. The centre point would be the part of the hand that's attached to the middle of the clock face, and the other end of the hand would be able to rotate 360 degrees around the face.

    The second one (and not related to the first one, a separate query altogether) is how to drag something horizontally along the screen, but have it stuck at a certain speed. So if the user tries to quickly drag the clip from left to right, it will not reach the right instantly, but instead follow the cursor at a slow speed.

    I hope I have explained my questions well enough.
    Thanks for any help in advance.

  2. #2
    Senior Member
    Join Date
    Feb 2003
    Posts
    129
    Anyone? Please?

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Basically you want continuous movements. For that you need loops. Check the onEnterFrame handler in the liveDocs (link in my footer) or in your help files.

    gparis

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