Search  

DOUBLEROLLOVERS - FLASH SOLUTION FOR HANDLING MULTIPLE ROLLOVER FUNCTIONS

HomeBrowse CategoriesFlashComponents & ExtensionsDoubleRollOvers - Flash solution for handling multiple rollOver functions

DoubleRollOvers is a solution to the age-old multiple rollOver issue in Flash. Without some sort of work-around, nested rollOver functions are disabled (including buttons) if a parent movie clip is also using rollOver functionality.

This handy applet allows you to easily incorporate nested rollOver functionality in your flash project! It’s simple to implement with only the most basic actionscript knowledge.

Posted 11 months ago

hmm interesting…

Posted 11 months ago

Urg I have this problem all the time, excellent Idea

Posted 11 months ago

Can I still make use of the onRollOver, onRollOut, onPress … events for the nested movie clips and as well for the parent movie clip ? Does it use hitTest method ? ( :) if it’s not a secret ) I’m really interested in a elegant method, that doesn’t use hitTest, to fix this problem :)

Posted 11 months ago

OXYLUS – yes you can make use of any functionality to both the parent and children movie clips. I’ve yet to find an elegant solution that doesn’t use hit test :)

Posted 10 months ago

useful

Posted 10 months ago

Great file i like it :)

and very low size 0kb

Posted 10 months ago

I’ve done this before once too. Nice work.

I had to facilitate a Drop-down within a drop-down request.

It was a lot of meticulous work.

I charged a lot at the time and delivered accordingly.

For this site: http://www.rusticcatalog.net/

The site was featured too on a prominent(at the time) eCommerce co.

:)

Posted 10 months ago

A great file!

I had my own work around for this, cowman’s is much better.

A very handy piece of code 5 stars :)

Posted 10 months ago

Nice, save’s me from figuring it out now :D

Thanks!

Posted 9 months ago

Does it work for other shapes than rectangles too?

Posted 9 months ago

First, I really do think this is great work… especially for static movies! But I found this rather difficult to use for movies made up of several dynamic tweening clips. Instead, I found that simply adding an invisible movie to the top level (of each desired double or triple rollover clip) to have the invisible movie’s on-roll functions call additional functions to control the tweens or effects of the clips on the levels below worked much better for me.

Posted 7 months ago

I’m trying to use this with a complex rollover and it isn’t working… What I am trying to do is have a very simple interface. My logo is the movie clip and when you rollover the logo it flips over to reveal the navigation. After you click on the menu item and rollout it flips back over to the logo.

The rollover on the Parent movie clip is as follows. (From Kirupa.com)

stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only

this.onEnterFrame = function(){ if(rewind == true){ //if rewind switch is set to true play backwards prevFrame(); // play backwards } }

this.onRollOver = function(){ rewind = false; //set variable (or switch) that decides wether ot not to play backwards… play(); // play this movie clip.. (grow the button(tween)); }

this.onRollOut = function(){ rewind = true; //set or rewind switch to true so it will play backwards… }

The code breaks the rewind function so that it doesn’t rewind on rollout, and the button rollovers don’t work.

I’m sure this is a great piece of code… it works in it’s basic form. I was hoping I could just make a few tweaks and it would just work for my instance. Anyone have a clue?

Posted 5 months ago

This movie is extremely useful. My AS knowledge is poor but i could work out how to adapt this movieclip to allow multiple overlapping movie buttons. Using this is easier than trying to understand this brilliant guide at: www.senocular.com

I response to Rubens question above: “Does it work for other shapes than rectangles too?”

I changed the shapeflag parameter of the hitTest method from false to true, to read: if(this.hitTest(_root._xmouse, _root._ymouse, true)){

This changed the “hit area” to be the movieclip items rather than he whole rectangle…i hope this helps.

Posted 5 months ago

for khcreative I think there are a few ways to do what youre trying to do – try using getBounds, see if that works, if you call your logoclip (which contains the menu inside it) logo_mc , the code would be something like this:

logo_mc.cacheAsBitmap = true;

logo_mc.onEnterFrame = function () { var logo_mcbounds = logo_mc.getBounds(_root); if (_xmouse logo_mcbounds.xMax || _ymouse logo_mcbounds.yMax){

// which means the mouse is NOT over the logo_mc clip // add you actions this.lorem ipsum dolor sit amet; // maybe a gotoAndPlay or why not rewind = true , if this. doesnt work, just type in logo_mc. } else{ // mouse is over the logo_mc clip this.lorem ipsum dolor sit amet; }; };

not sure if this was your problem, hope it helps,,,

Posted 5 months ago

very useful

Posted 3 months ago

wow… now non-coedrs can make an accordion menu…..woohoo

Posted about 1 month ago

Thanks to Charlie for the hint:

if(this.hitTest(_root._xmouse, _root._ymouse, true)){

It took me some time to fix the rollOut and the answer was here all the time.

I guess it would be good if Cowman change it in the flash file.

Posted 21 days ago