A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Clip follow mouse on Motion Tween

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

    Clip follow mouse on Motion Tween

    Hi All

    I have a blank flash movie which has a circle drawn in the middle

    I then have a movie clip symbol called "star", it is basically a line drawing of a star

    Within the main movie, I have the "star" snapped to the circle so that I can make a "motion tween" to rotate the star around the circle.

    What I want to do, is make the "star" rotate around the circle but only doing it when the mouse cursor is being moved around the circle.

    So the "star" is following the mouse cursor, but the star should remain clipped to the curcle

    Does that make sensE?

    Can anyone help me with a script to do this

    Thanks

    JohnK

    So

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    3
    I have put my fla file at

    http://www.filefactory.com/file/a085919/n/temp_fla

    you need to scroll down to the bottom of the page to get the "download" link.

    If you see in my example, the clip called "star" rotates around a circle, basically I want to try and get this effect but moving only when the mouse moves

    So if you were to move your cursor around the circle, then the clip "star" would follow the cursor, stopping where the cursor stops

    Hope someone can help, im really stuck

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