big bang Power tools for Adobe GoLive
MenuMachine Manual

 

 
Using GoLive Actions with MenuMachine

MenuMachine fully supports GoLive Actions, allowing you to produce some extremely sophisticated and superior interaction.

MenuMachine has excellent integration with GoLive Actions by providing a simple way to hook into this powerful inbuilt functionality.

To use GoLive Actions in MenuMachine menus, the actions must be configured as Head Actions set to trigger onCall.

How to setup up a basic Action e.g. OpenWindow.

(To see how to swap images using menu items and the Set Image URL action, click here.)

1) Open a page that is saved into a site. Put a MenuMachine menu on the page.

2) Drag a Head Action object into the head section of your page.



 

3) Select the Head Action in the head area and choose the action you want to trigger in the Inspector (GL6) or Rollovers & Actions window (GLCS) from the Actions pull-down list and set its parameters to your liking.

(See the images below for the different windows.)

This example show the Open Window Action but you can use any action you like. (NOTE: If your action links to a page, the URL is set in this window, rather than being set in the MenuMachine Inspector.)

Give your action a sensible name otherwise it will be confusing later. Make sure the name you choose contains no spaces or symbols apart from the underscore(_) and that it does not have a number as its first character.

After configuring the action (the example shows the Open Window action), you must set the action to trigger OnCall. If you do not do this, you will not be able to assign the action to a MenuMachine menu item.

GoLive CS Rollovers & Actions Window:
 
 

GoLive 6.x Inspector:
 

4) To add the Action to a MenuMachine menu item, select the MenuMachine object in layout view to invoke the MenuMachine Inspector.

Select the menu item that you want to attach the action to in the menu tree editor.

When you have done that, click the Call Action button in the MenuMachine editor toolbar.



5) The Edit Menu Actions dialog is displayed. You can now attach the Action to a menu event (Click, Enter or Exit) by selecting its name from the popup. You can attach different actions to each event or any combination of events.

Click OK and you're done.

6) If you want to add multiple Actions to a single menu item, you can create a group action. Below is the Head Action's Action Group settings that have been used this sample menu containing multiple Actions.


Note about using Actions: When you use Actions, GoLive copies a javascript library (CSScriptLib.js file) into the GeneratedItems folder. This file contains the code for ALL the GoLive Actions, and you really only need the code to the ones you have used in your site.

Choosing Flatten Script Library (under Site in the menu bar when the site window is active) reduces the size of the CSScriptLib.js file from around 74kb (GL6) or 88.7kb (GLCS) to a smaller size e.g. around 10kb or so. This will make the page load faster in a browser as the CSScriptLib.js file is called when the page loads.

You will need to do this every time you upload pages and the GeneratedItems folder after working on a page that contains Actions as GoLive re-copies the larger library into the GeneratedItems folder when you save a page with an Action on it.

This Section

Menu in a Template

Menu in a Component

"Lock to image position"
menu in a Component


Multiple Components

Multiple Menus & Layers

GoLive Actions & Menus

Horiz Menu with Actions

Text Wrap in a Menu

<< back to contents

Troubleshooting & FAQs

Search documentation:
next page >

© Big Bang Software Pty Ltd 2004  

bb