Forum Topic: Keycode for left click

(98 views • 6 replies)

This topic is 1 page long.

<< < > >>
None

LuciousClump

Reply To Post Reply & Quote

Posted at: 2/27/09 03:36 AM

LuciousClump NEUTRAL LEVEL 05

Sign-Up: 08/26/08

Posts: 150

Hey I was wondering when your coding and you want something to happen when you left click how would you code that??
I was wondering if left click actually had a keycode number??
and if not how could I code that
also I have flash 8

Check out my First Song
-Crazy Scientist-


None

WolfAkela

Reply To Post Reply & Quote

Posted at: 2/27/09 03:58 AM

WolfAkela LIGHT LEVEL 08

Sign-Up: 12/19/05

Posts: 2,327

Keycode is 1.

Might be different on Macs, not sure.


None

henke37

Reply To Post Reply & Quote

Posted at: 2/27/09 06:57 AM

henke37 NEUTRAL LEVEL 23

Sign-Up: 09/10/04

Posts: 3,613

You really should not try that, it is not a defined behaviour and as said, it doesn't work on all platforms. Just use the normal mouse classes instead.

Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.


None

Nuttro

Reply To Post Reply & Quote

Posted at: 2/27/09 07:18 AM

Nuttro LIGHT LEVEL 22

Sign-Up: 04/26/07

Posts: 848

At 2/27/09 06:57 AM, henke37 wrote: You really should not try that, it is not a defined behaviour and as said, it doesn't work on all platforms. Just use the normal mouse classes instead.

He said left click not right click you fool


None

Fion

Reply To Post Reply & Quote

Posted at: 2/27/09 07:56 AM

Fion LIGHT LEVEL 34

Sign-Up: 08/21/05

Posts: 2,374

At 2/27/09 07:18 AM, Nuttro wrote: He said left click not right click you fool

He was talking about left click not right click you fool. The keycode for left mouse button is one but that only works on PCs.


None

Nuttro

Reply To Post Reply & Quote

Posted at: 2/27/09 09:10 AM

Nuttro LIGHT LEVEL 22

Sign-Up: 04/26/07

Posts: 848

At 2/27/09 07:56 AM, Fion wrote:
At 2/27/09 07:18 AM, Nuttro wrote: He said left click not right click you fool
He was talking about left click not right click you fool. The keycode for left mouse button is one but that only works on PCs.

You know you just made my point right?


None

Johnny

Reply To Post Reply & Quote

Posted at: 2/27/09 12:11 PM

Johnny DARK LEVEL 21

Sign-Up: 04/17/04

Posts: 4,449

At 2/27/09 03:36 AM, LuciousClump wrote: Hey I was wondering when your coding and you want something to happen when you left click how would you code that??

Left Click is easy.. (for PC at least, not sure how mac mice work.

onMouseDown = function()
{
//do stuff
}

All sites currently down. Deal with it. <3

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 01:52 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!