Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash MouseOver problem

Status
Not open for further replies.

carlmty

Programmer
Mar 18, 2002
5
MX
I need to do a Photo gallery, I have the thumbnails on the right, and when the mouse pass to one thumbnail, the picture, resize it to the center of the page, showing it at its full size.

The problem I have, is that when I pass the mouse over, let say, to the first thumbnail, displays the first picture right,and the picture grow correctly to the center of the page, and shrinks back to the original position, smoothly; but I have to leave the mouse over the thumbnail, to see the effect of growing and shrinking, because if I move it fast or out of the thumbnail, the picture suddenly appears, and the effect is lost.

What I need, is that, no matter if I move the mouse slow or fast, or if I leave or move the mouse over or out of the thumbnail, the picture grow and shrink, properly, and that the picture doesn't appears suddenly, when I move the mouse over the thumbnail or move the mouse out of the thumbnail.

I have uploaded an example of what I already have:


I need help, in order to achieve this effect.

Thank you
 
Answered this exact same thread a few days ago.

thread250-233069

Post a link to your .fla or e-mail it to me at tektiper@hotmail.com

Regards,
new.gif
 
If you really want the mouseOver thing do as follows>>

You just make the normal button with normal mouseovercrap.
next you make the movieClip of the pic growing to the middle with the first frame blank(for convenience) next you put the movie right on top of the buttonInstance and in the actions window from the button instance just put:

on (rollOver) {
with (_root.round) {
play ();
}
}

with _root.round being the name from the movieClip Instance.
All clear? Works like a charm and no clicking
 
Something like this :

Code:
onClipEvent (load) {
	var speed = 4;
	var origX = _x;
	var origY = _y;
	var origWidth = _width;
	var origHeight = _height;
	var fooX = origX;
	var fooY = origY;
	var fooWidth = origWidth;
	var fooHeight = origHeight;
}
onClipEvent (enterFrame) {
	if (hitTest(_root._xmouse, _root._ymouse)) {
		_root.foo = this;
		fooX = _parent.block._x;
		fooY = _parent.block._y;
		fooWidth = _parent.block._width;
		fooHeight = _parent.block._height;
	} else {
		if (_root.foo != this) {
			fooX = origX;
			fooY = origY;
			fooWidth = origWidth;
			fooHeight = origHeight;
		}
	}
	_x += (fooX-_x)/speed;
	_y += (fooY-_y)/speed;
	_width += (fooWidth-_width)/speed;
	_height += (fooHeight-_height)/speed;
}

Regards

Big Bad Dave

logo.gif


davidbyng@hotmail.com
 
Nice try Bad... But that one sticks too! If the mouse is in the path of two crossing squares. A bit like that drop down menu you did a while ago!

Regards,
new.gif
 
Yeah ok so it needs a couple of tweaks but it did only take me 2 mins and you get the gist Regards

Big Bad Dave

logo.gif


davidbyng@hotmail.com
 
Repost old mouseover problem

About the mouseover problem, I already tried every posible solution, that all the nice people in this forums suggested me, and the problem persist.

So, I upload the .fla file, (the layers and the libraries are named in spanish, though, but the code is the code for actionscript, and it's in english).

Please help me! I'm stucked and seems that I will be forever

You can download the fla at:


I'm getting desperate, guys, please HELP!!!

I really apreciate all the help I can get.

Thanks in advance, nice people
 
I want to thank you all for the help you gave me in this problem, but the problem is already solved, that's why, I delete the files from the server, the fla, previously posted.

Thanks again to all of you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top