PDA

View Full Version : mouseover and rollovers urgent!!please help



icydee
October 25th, 2008, 03:08 PM
hi! i am doing a flash website, my gallery is made up of small thumbnails, now what i want to achieve is, i want to have the enlarged version of the thumbnailed showen somewhere specific on stage when a mouse is rolled over the hit area,and i want it to disapper when the mouse is moved away frm the hit area, i knw this sounds very easy, bt i tried, bt i cnt achieve what i really want
thanks in advance

sepu
October 26th, 2008, 03:49 AM
post FLA or show some code ... like this you wont get any help ...

icydee
October 26th, 2008, 08:06 AM
thanks Sepu! bt i figured it out, i wanted something like this,

function showTip(mc) {
_root[mc]._x=_xmouse+5;
_root[mc]._y=_ymouse+5;
}
function hideTip(mc) {
_root[mc]._x=-150;
_root[mc]._y=-5;
}

glosrfc
October 26th, 2008, 10:46 AM
Instead of giving your mc a negative value (which can still be displayed if someone downloads the SWF and rescales it), use the _visible property instead:

function hideTip(mc) {
_root[mc]._visible = false;
}
function showTip(mc) {
_root[mc]._visible = true;
_root[mc]._x=_xmouse+5;
_root[mc]._y=_ymouse+5;
}