bjv211
asked on
Onclipevent problem with mouse over
I have a scrolling slideshow that scrolls left or right depending which way you move the mouse. When you hover a picture the text changes at the bottom, however I want to set it so that when you mouseoff it switches to a generic text. I have coded the actionscript for the message switching as
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmous e, _root._ymouse, true)) {
over = true;
if (_alpha>0) {
_alpha -= 5;
_root.getinfo(substring(_p arent._nam e,7,1));
}
} else {
over = false;
if (_alpha<50) {
_alpha += 5;
_root.getstandby(substring (_parent._ name,7,1)) ;
}
}
}
The problem is that when I move the mouse left to right off the current picture it defaults to the standby string of text and doesn't change with each picture. I only want the standby if my mouse isn't over any pics.
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmous
over = true;
if (_alpha>0) {
_alpha -= 5;
_root.getinfo(substring(_p
}
} else {
over = false;
if (_alpha<50) {
_alpha += 5;
_root.getstandby(substring
}
}
}
The problem is that when I move the mouse left to right off the current picture it defaults to the standby string of text and doesn't change with each picture. I only want the standby if my mouse isn't over any pics.
ASKER
interesting fact, it works ok if I move the mouse to left, but not to the right.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I changed the syntax, but still giving me problems...you can click the link again to view, if you would like to see the FLA goto http://homepages.nyu.edu/~bjv211/slide_rev.fla
ASKER
nevermind...just got it...
ASKER
any thoughts on how to set a default speed for scrolling? (ie when the mouse is not on the pics)
ASKER