Wow, Sean! You always amaze me with these unorthodox strategies. Yes! This
one works. [Though I used me.spriteNum where you typed spriteNum].
It made the MIAW a little more sluggish than it was, though...
I'd really like to understand this (and when I do, I'll post for the list).
So the rollover() function is called and works as it's supposed to.
And the pWithin property is set by the mouseEnter handler, which means the
mouseEnter IS executed. If so, why does my test fail:
--sprite's behavior
on mouseEnter
PUT "mouseEnter"
end
Why is mouseEnter willing to assign a value to a property but is not
willing to put a message in the message window until it is forced to run
again by the exitFrame handler? What's the mechanism, now that your theory
has been confirmed? Maybe it can help me find a solution without running
exitFrame in more than a dozen sprites all at once?
Very gratefully,
Slava
At 10:04 AM 9/6/2001 +1200, you wrote:
> > I have a movie that works perfectly in authoring, but when it is run as a
> > MIAW, mouseEnter, mouseWithin, and mouseLeave handler are not called.
> > Otherwise, the movie works fine: the mouseUp, mouseDown handlers
> > are called.
>
>I've not encountered the behaviour you describe, but how about adding an
>exitFrame handler to the sprites that need to react to mouseEnter etc.
>
>property pWithin
>
>on exitFrame me
> if rollOver( spriteNum ) then
> if not pWithin then
> mouseEnter( me )
> end if
> else
> if pWithin then
> mouseLeave( me )
> end if
> end if
>end
>
>
>on mouseEnter me
> pWithin = TRUE
> -- mouseEnter stuff
>end
>
>
>on mouseLeave me
> pWithin = FALSE
> -- mouseLeave stuff
>end
>
>It's a hack - let me be the first to admit that! And it will run handlers
>unnecessarily, but something along those lines might get it to work for you.
>
>HTH,
>-Sean.
>
>
>[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!]
[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!]