At 1:19 PM -0500 11/19/00, Bob Solomon wrote:
>Hi,
>
>I've created some rollover buttons. Here's an example of the scripts I
>used. It seems to work fine the first time I open Director and test the
>movie. But after I've jumped around several movies the Over State stops
>working. The Down and Up states work consistently.
>
Bob,
I don't se anything in your code that would lead to the problem that
you are describing. However, I do see some problems in other areas.
For example, you are not handling the case of "mouseUpOutside".
Looks like you would be left with the wrong graphic if the user
clicked down, rolled off, and let go.
I suggest that you take a look at my article on buttons on DOUG at:
http://www.director-online.com/accessArticle2.cfm?id=340
It also shows how to make a generic button script that can be re-used
on many buttons, rather than hard-coding an action within the button
script.
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Over two millions lines of Lingo code served!)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]