.
overview
features
samples
help & support
downloads
buy now
Questions
Instructions

Answers

topInstructions

-------------
What it does:
-------------

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.


---------------
Included files:
---------------

DoubleRollOvers_Flash8.fla Flash 8 development file
DoubleRollOvers_MX2004.fla Flash MX 2004 development file
Instructions.txt The file you're reading now


-----------------------------
How to set up DoubleRollOvers
-----------------------------

Open the .fla file and drag the "rollOverShell" movieclip from the library into your own flash project.
Inside your flash project, give the "rollOverShell" instance any name you like. Double-click the instance of "rollOverShell" to edit.

Delete the content on the "Your Content" layer - unless you want my sample content, feel free :D

Place any content you like, on as many or as few layers as you like. Do not modify the actionscript on the "actions" layer except for customizing rollOver and rollOut functions (see below).

If you need to add your own actionscript, you may do so, just don't delete what's already on the "actions" layer.

Your content may include buttons, or use other rollOver functionality.


------------------------------------------------------------------------------
How to customize DoubleRollOvers to use your own custom rollOver/Out functions
------------------------------------------------------------------------------

Inside the "rollOverShell" movie clip, within the code on the "actions" layer, there is a "USER SETTINGS" section with two variables which can be customized. They are "rollOverFunction" and "rollOutFunction", and should be set equal to the name of the functions you want to call when the mouse is moved over or out of this movie clip.

Note that in the sample, these variables are set to _parent.turnOn and _parent.turnOff. These functions reside in the parent movie clip's action layer, but you may store these functions anywhere you like, just make sure your relative paths are set correctly when defining these two variables.


------------
Usage Notes:
------------

You may have as many instances of "rollOverShell" in your project as you need. You may name these instances anything you like.

If you're using multiple rollOverShells, you should create a duplicate movie clip of "rollOverShell" and give it a unique name. Do this for each instance you need. This way you can have each "rollOverShell" instance call unique functions for their rollOver/Out functionality.

You may also nest rollOverShells inside other rollOverShells if you need even more rollOver functionality.

---


That's it! Please enjoy, and as always, don't hesitate to contact me with any questions at dcollins@davecollinsphoto.com!

 
featured componentsfeatured components