i've been using this method to listen for mouse movements and mouse
clicks on the first frame of my .fla:

_root.onMouseMove = function()
{
   trace( "mouse moving" );
};
_root.onMouseUp = function()
{
   trace( "mouse being clicked" );
};

is that not a good way to do this?

On 10/26/05, JesterXL <[EMAIL PROTECTED]> wrote:
> Mouse.onMouseDown/onMouseUp already does this.  If you are using the v2
> component framework, or if you are not, you can see how they are doing it
> via mx.events.LowLevelEvents.
>
> ----- Original Message -----
> From: "Matt Ganz" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" <[email protected]>
> Sent: Wednesday, October 26, 2005 10:38 AM
> Subject: [Flashcoders] listening for all button events
>
>
> hi.
>
> is there any way to have one listener listen for all button events.
> you know, like you can have with "Key". or do i have to give all my
> buttons instance names and use addListener on each instance?
>
> thanks.
>
> matt.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to