I have created some menus with rollover and click events and
these work fine when previewed from Fireworks in a browser. However
when I import them into Director the rollover works, but the
onClick does not. When I look at the Lingo there is no reference to
the onClick function. I have amended the code myself and it sort of
works, though I am not sure how to get the correct member into the
The code is below and the lines in bold are the one's i have
added, any help with this would be appreciated.
-- DESCRIPTION --
on getBehaviorDescription me
"ROLLOVER MEMBER CHANGE" & RETURN & RETURN & \
"Change the sprite's cast member when the mouse rolls over
the sprite." & RETURN & RETURN & \
"PARAMETERS:" & RETURN & \
"* Rollover cast member"
on getBehaviorTooltip me
"Use with graphic members." & RETURN & RETURN &
"Swaps a sprite's cast member on rollover."
-- HISTORY --
-- 22 October 1998, written for the D7 Behaviors Palette by
-- Modified 7 January, 2000 by T. Higgins to include the
-- event handler along with removing some redundant error
-- 5 March 2000: Modified to match Fireworks button order
-- and be D7 and D8 compatible for Fireworks Importer
Your browser is responding to events generated by the HTML
page. Director responds to events generated by Director. onClick is
not a Director event, which is why you can find no documentation on
I have never tried creating menus in Fireworks and then
importing them into Director, so I don't know exactly what you are
working with. If your "menus" are just a series of buttons, then
you could try using the Mouse States behavior that you can find at
This provides for rollover and mouseDown states, and also changes
You will need to add a separate behavior with an "on mouseUp"
handler that will actually do something when the button is clicked.
As far as modifying the Rollover Member Change behavior is
concerned, try replacing the current getPropertyDescriptionList()
handler with the following: