# Scroll wheel navigation in flash

**URL:** https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889
**Category:** flash
**Created:** [October 18, 2002, 11:18pm UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889 "2002-10-18T23:18:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![babbaladoobala](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@babbaladoobala](https://forum.kirupa.com/u/babbaladoobala)
#### Post date: [October 18, 2002, 11:18pm UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/1 "2002-10-18T23:18:21Z")

</div>

Hi - I am wondering whether anyone knows how (or if) the scroll wheel can be used in flash, say - to navigat through a listbox or something - ?

Thanks,

Sam ![](http://forum.kirupa.com/uploads/kirupa/100/d245216c8cfc5ae9.gif)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2002, 7:36am UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/2 "2002-10-19T07:36:19Z")

</div>

Can be used with IE 6 only, and for text fields, so far. I have a link for that, but can’t find it…  
The javascript it interacts with (in the html page/head) is:

```php

<script language="JavaScript">
<!--
function mObject (mName) {
	if (navigator.appName.indexOf ("Microsoft") !=-1){
		return window[mName];
	} else {
		return document[mName];
	}
}
var movieID = "scrollbarv2";
function scroll() {
	// Remember to assign an id paramater in your <object> tag and to set
	// the onMouseWheel="scroll()" paramater.
	var target = mObject(movieID).GetVariable("TScrollbarActive");
	target = "/"+target.replace(/\./g, "/")+":JSScroll";
	var scrollAmount = parseInt(mObject(movieID).GetVariable(target));
	if (event.wheelDelta >= 120) {
		mObject(movieID).SetVariable(target, scrollAmount - 1)
	} else if (event.wheelDelta<=-120) {
		mObject(movieID).SetVariable(target, scrollAmount + 1)
	}
}
//-->
</script>

```

Ok, sorry, won’t apparently accept javascript to be posted, tried to edit but it doesn’t show…

[EDITED BY LOSTINBETA TO SHOW JAVASCRIPT]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2002, 7:45am UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/3 "2002-10-19T07:45:44Z")

</div>

we’ll just have to wait until the technology is there, I suppose - thanks anyhow,

Sam

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2002, 7:52am UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/4 "2002-10-19T07:52:01Z")

</div>

Refer to the edit above.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2002, 8:02am UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/5 "2002-10-19T08:02:47Z")

</div>

And I even found the link in my collection:  
[http://www.the1stmovement.com/](http://www.the1stmovement.com/)

it’s under play/ 3rd one…with download…  
but it’s not the one i posted the code for above (thanx lost…), still, it works 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2002, 8:08am UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/6 "2002-10-19T08:08:24Z")

</div>

No no, thank you for that link 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2002, 5:36pm UTC](https://forum.kirupa.com/t/scroll-wheel-navigation-in-flash/6889/7 "2002-10-19T17:36:38Z")

</div>

Thanks for the follow up on that -

Sam
