A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How do u get this effect?

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    143

    How do u get this effect?

    How do u get the effect where the red bar on the menu of this site > http://www.brandnewrock.com/news.php follows the mouse? can anyone point me to a .fla or somethin?

    THX!

  2. #2
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    Put this on the buttons, and have the little follower deal be a MC named 'slider'.
    code:
    on (rollOver) {
    _root.slider.onEnterFrame = function() {
    this._x += (btn1._x-this._x)/4;
    //replace 4 by the number u want to change the velocity
    if (Math.abs(btn1._x-this._x)<0.1) {
    delete this.onEnterFrame;
    }
    };
    }


    Change the bold areas to the instance names of the buttons.
    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    143
    sweet, it worked.. thx for the help

  4. #4
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    Welcome.
    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

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