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

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  10/25/2006
Points
  380

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

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
  12/6/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 12:54:25 AM -

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
  10/25/2006
Points
  380

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

Not that, the page not scrolling...

 
Code me a sausage!

-UrbanMonk-

Professor Spectrum

Registered
  7/7/2008
Points
  6121

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 Fool
7th November, 2010 at 1:01:10 AM -

Try this.

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

Good Luck!

 
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore

Don Luciano

Heavy combat pancake

Registered
  10/25/2006
Points
  380

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

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
  11/6/2004
Points
  2479

VIP Member
7th November, 2010 at 1:17:53 AM -

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
  10/25/2006
Points
  380

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

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
  10/25/2006
Points
  380

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

I would probably look like this:
Image

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click