Jump to content


how can i make a slider like this


  • You cannot reply to this topic
3 replies to this topic

#1 mxo22

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 18 January 2006 - 02:28 AM

hi,i wolud like to know how can i do to make a slider like this the buttom slider when i rollover a buttom the slider moves how can i do that in flash.


thanks in advance

#2 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 18 January 2006 - 03:12 AM

That's a Follower Menu you should find one here:
http://www.pixel2life.com/tutorials/Macrom...follower%20menu

#3 mxo22

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 18 January 2006 - 03:54 AM

hi i foun one but is not exactly what i am lokking for please help me i donīt know too much about script this is the tutorial http://www.stilva.com/cursor-follower/ but it moves on mouse event i want to move a "thing on rollover event and only to _x.

thanks in advance

#4 digisoftstudios

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 23 April 2006 - 01:43 PM

wow, i must be really bored.

This goes on the MovieClip which moves.

onClipEvent (load) {
	targetx = 396;
	width = 10;
}
onClipEvent (enterFrame) {
	if (_root.activateover == 2)
	{
		if (this._alpha < 100)
		{
			aa = _alpha;
			this._alpha = int(aa) + 20;
		}
	}
	speed = 8;
	viscosity = 1.5;
	// take care of our x position
	difference = targetx - _x;
	xvelocity = (xvelocity + (difference) / speed) / viscosity;
	_x += xvelocity;
	if (this._width >= width)
	{
		_width = _width - 4;
	}
	if (this._width <= width)
	{
		_width = _width + 4;
	}
}

on the button which triggers the move action. 'bar' being the instanceName of the MovieClip Object.

on (rollOver) {
	bar.targetx = 97;
	bar.width = 50;
}






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users