Hi all,
Okay, I've got a movie that has magazine ads scrolling from right to left. What I want to do is when you rollover the ad a scrolls down over it, is slightly transparent, and info appears about that particular full page spread. Then upon rollout the box scrolls back up.
I'm using hitTest to do this and it's not working. When you roll over the ad nothing happens but there's a faint area just above it that shows a bit of the screen when you hit it. I've been sitting here all day looking at it and I just can't see it.
Code is:
onClipEvent (load) {
var origY = _parent.details._y;
var Y = _parent.details._y;
var bar = 0;
var blockHeight = _height;
var dropSpeed = 3;
var alphaSpeed = 7;
_parent.details._alpha = 40;
}
onClipEvent (enterFrame) {
if (_parent.details.hitTest(_root._xmouse, _root._ymouse, true)&& _root._ymouse >= 125) {
Y = origY+_parent.details._height-blockHeight;
bar = 100;
} else {
Y = origY
bar = 0;
}
_parent.details._y += (Y-_parent.details._y)/dropSpeed;
_parent.details._alpha += (bar-_parent.details._alpha)/alphaSpeed;
}
Help!
Rhiannon
Okay, I've got a movie that has magazine ads scrolling from right to left. What I want to do is when you rollover the ad a scrolls down over it, is slightly transparent, and info appears about that particular full page spread. Then upon rollout the box scrolls back up.
I'm using hitTest to do this and it's not working. When you roll over the ad nothing happens but there's a faint area just above it that shows a bit of the screen when you hit it. I've been sitting here all day looking at it and I just can't see it.
Code is:
onClipEvent (load) {
var origY = _parent.details._y;
var Y = _parent.details._y;
var bar = 0;
var blockHeight = _height;
var dropSpeed = 3;
var alphaSpeed = 7;
_parent.details._alpha = 40;
}
onClipEvent (enterFrame) {
if (_parent.details.hitTest(_root._xmouse, _root._ymouse, true)&& _root._ymouse >= 125) {
Y = origY+_parent.details._height-blockHeight;
bar = 100;
} else {
Y = origY
bar = 0;
}
_parent.details._y += (Y-_parent.details._y)/dropSpeed;
_parent.details._alpha += (bar-_parent.details._alpha)/alphaSpeed;
}
Help!
Rhiannon