The Daily Click ::. Forums ::. Klik Coding Help ::. mouse wheel
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
7th November, 2010 at 00:11:53 -

I want to use the mouse wheel, like i v seen in a few flash games it doesn't scroll the page
Like this one:
http://labs.byhook.com/2010/04/09/flash-mouse-wheel-support/

Is there any way to do this?
Please halp! I would do anything for that... and i mean anything!

 
Code me a sausage!

Spitznagl

Cabinetmaker

Registered
  06/12/2008
Points
  4260

The SpinsterVIP MemberHas Donated, Thank You!Picture Me This Round 29 Winner!Picture Me This Round 31 Winner!Picture Me This Round 36 Winner!
7th November, 2010 at 00:54:25 -

There's the "On mouse wheel up/down" condition and the "WheelDelta" expression from the "mouse & keyboard" object Image.

 
...

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
7th November, 2010 at 00:58:15 -

Not that, the page not scrolling...

 
Code me a sausage!

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
7th November, 2010 at 01:01:10 -

Try this.

Force the user to give the flash window focus by clicking on a button inside the flash app.

Good Luck!

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
7th November, 2010 at 01:14:36 -

I tried, but i have no idea how to force a button to click itself with always or mouse wheel event. There is just no actions for that. I also tried with list object always giving focus, and edit box, but that didn't work aswell.

 
Code me a sausage!

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
7th November, 2010 at 01:17:53 -

I could easily be totally wrong on this, but you might need some javascript in the actual webpage. I vaguely remember reading something about that...

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
7th November, 2010 at 01:21:54 -

Ah sorry, i misread the post, yes it would need javascript on the page, but that could be added i think, just like external files are added for the game?
I guess.
I did try earlier adding the javascripts which i downloaded from that link above to a testing page i have, but i have no idea how that stuff works, or actually how would i do, do stuff with that stuff. Except maybe learn to code in c++ and flash and then after a couple of years realize that i have grown old and have a moustache on my face. That wouldn't be good...

Edited by Don Luciano

 
Code me a sausage!

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
7th November, 2010 at 01:58:12 -

I would probably look like this:
Image

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click