Re: FN-FORUM: another flash rollover problem
date posted 1st September 2004 14:51
Add this to your first frame:
------------------------------------------------
// declare distance between the mouse and the textpopup
xDif = 15;
yDif = 15;
//
setProperty("mcPopup", _visible, "0");
//
// function to show the popup
function showPopup(txt) {
mcPopup.theText = txt;
setProperty("mcPopup", _x, _xmouse + _root.xDif);
setProperty("mcPopup", _y, _ymouse + _root.yDif);
startDrag("mcPopup");
setProperty("mcPopup", _visible, "1");
}
//
// function to hide the popup
function hidePopup() {
stopDrag();
setProperty("mcPopup", _visible, "0");
}
------------------------------------------------
Then create a mc called 'mcPopoup', which contains your bubble image and a
dynamic textbox called 'theText'. Then, put invisible buttons over your
images with the following code:
------------------------------------------------
on (rollOver) {
showPopup("insert whetever you want to display here");
}
on (rollOut) {
hidePopup();
}
------------------------------------------------
Also, as a final note, don't just ask people to solve your problems on the
forum. At least have a go yourself first. I suggest signing up to the
flashkit.com and actionscript.org forums. I did try and offer you help the
other day but you didn't get back.
Cheers,
Dan