Hi,
You could try
mc_menu.button1.onRelease = function () {
etc....;
}
At 07:38 a.m. 16/09/2006, you wrote:
>Hi List
>
>Sorry this is a Flash 8 Pro question not a Director
question but I'm
>in a rush and I'm not having any luck with Flash forums
so far...
>
>I'm sure this is a simple problem to fix but I'm
having problems
>with buttons nested inside MovieClips not receiving
mouse events if
>that MovieClip has a onRollOver function.
>
>I have a MovieClip which contains 3 button symbols used
as a menu
>bar. After a little animation of the MovieClip opening
up the
>buttons will appear. The animation is a simple shape
tween on a
>layer underneath the button layers.
>
>The MovieClip's animation is triggered by a function
assigned on the
>root timeline:
>
>mc_menu.onRollOver = function () {
> this.gotoAndPlay("open");
>}
>
>So, when the mouse enters the MovieClip's bounding box
the animation
>is triggered however the buttons will no longer receive
any mouse
>events (no clicks, no rollovers, nothing). It's almost
as if the
>MovieClip is grabbing the mouse event for itself and not
passing it
>down to its child elements.
>
>Does Flash 8 have the equivalent of Lingo's
"pass" command to force
>these events down into child elements? Am I going about
this the
>wrong way? I have tried having an invisible trigger for
this
>underneath the buttons, but as soon as a RollOver event
is fired on
>any of the buttons, it causes a RollOut event to fire on
the trigger
>causing the menu to close.
>
>Suffice it to say I'm not having much luck.
>
>Sorry again for the OT post.
>
>TIA
>Ross
>
>
>________________________________________________________
___ To help
>you stay safe and secure online, we've developed the
all new Yahoo!
>Security Centre. http://uk.security.yahoo
.com
>[To remove yourself from this list, or to change to
digest mode, go
>to http://www.penwor
ks.com/lingo-l.cgi To post messages to the
>list, email lingo-l penworks.com (Problems, email
>owner-lingo penworks.com). 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.penwor
ks.com/lingo-l.cgi To post messages to the list, email
lingo-l penworks.com (Problems, email owner-lingo penworks.com). Lingo-L is for learning and helping
with programming Lingo. Thanks!]
|