PDA

View Full Version : overLapping rollOvers



Mayhem
August 12th, 2003, 05:12 PM
I am scripting a thumbnial horizontal scroller, it will included (loaded) into a main .swf.

my problem is this, I have a big hidden button on the top layer that detects the rollOver and gets the thumbs moving, works great, except it prevents all my other other rollOvers from working.. I undstand why it does this, what I would like to know is some kind of alternate way to trigger my function.. or some trick other than swapDepths, or if swapDepths is the only way, how do I trigger it to swap the moveHit for the urlHit...

I have tried everything from a hidden button that covers the stage, to using:

this.onRollOver = function() {
_root.moveStrip();
};

on everything.

hopefully I am missing something small.
I forgot to mention that the strip will reset on(rollOut) as well, or else I wouldn't worry about it, and just let the mouse drive it constantly.

sorry for being so verbose : )

Mayhem
www.2muchinfo.com

thoriphes
August 12th, 2003, 05:19 PM
so you have a button that tests if it hovers over the other buttons? then plays an animation?

Johnny64
August 12th, 2003, 05:25 PM
hoi

if you turn you big button into am MC and set the alpha to 0
the change you


this.onRollOver = function(){
//code
}

this.onrollOut = function() {
//code
}


to



this.onEnterFrame = function(){
if(this.hitTest(this._parent._xmouse,this._parent. _xmouse && !RolledOver){
RolledOver = true
// code
} else if (!this.hitTest(this._parent._xmouse,this._parent._ xmouse && RolledOver){
RolledOver = false
//code
}
}


now your useing hit test instend of a hitArea and so not geting in the way of the other buttons


;)

Mayhem
August 12th, 2003, 06:08 PM
Ooh, that's a different approach, thanks, I'm going to try it right now!

Thanks.

Mayhem
www.2muchinfo.com