I did very simple work: open Director MX 2004, click the
button icon on the Tool Palette, and draw a button on the stage.
Right click it and menu appear. Click "Scripts..." and script
window opens. MouseUp() event function is there already. Write
something in mouseUp(). Anything is OK. Put a breakpoint on some
OK, then click menu Control-Play to run the movie. Click the
button on stage. At this time, it ought to be broken on the
breakpoint. But it didn't. The mouseUp() was not called!
On the other hand, other controls are OK, such as Text,
Shape, etc.. Only botton can not call its script. Is it a bug of
Director MX 2004?
It may be that you're creating flash component buttons. Try
setting the tool palette to 'classic' mode (the dropdown at the top
of the tool palette). The buttons you create once you've done this
will be native director buttons.
I've not really used flash component elements much at all so
I can't offer advice as to why the mouseup isn't working with it.
To make the Flash buttons work, you need to go into the
Inspector (on the Flash Component tab) and change the very
(eventPassMode) to #passAlways. That will make it respond to
events instead of the default behaviour which is dealing with
events. I'm not sure why it defaults that way, but it does.