A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Adjustable cursor...

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Posts
    412

    Adjustable cursor...

    Hi,

    I've seen this effect on a few sites and was wondering if any one knows of a tutorial or source file that can teach me how to do it.

    The effect is only on the splash page and happens when the mouse moves over the "enter" on the screen.

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Its a movieclip that follows the mouse.

    Just paste this code on the movieclip.

    onClipEvent(enterFrame){
    this._x+=(_root._xmouse-this._x)/5;
    this._y+=(_root._ymouse-this._y)/5;
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Posts
    412
    Thanks for that - but how does the two bars of the movie clip know how spread out to the width (and height in some examples) of the link?

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    I was just using a simple example of the movement. They have two movieclips, each probably with a small animation inside that is triggered to start as soon as the mouse is over them. They may also have a random starting point.
    Or they could have used the same script, but for _rotation instead of _xmouse with some different settings.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    the usual
    Join Date
    Jul 2000
    Posts
    1,482
    I tried this a while ago, I think I still have the source somewhere - I'll try to dig it out when I get home - that will be 6-7 hours

    pm me with your e-mail address (to remind me) and i'll mail you when I get a chance

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