Thread: Scrolling-wheel
View Single Post
Old 05-31-2004, 04:29 AM   #22
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Sorry, but that only limits the effect as well...

At the moment I only use this:
Code:
mouseListener = new Object ();
mouseListener.onMouseWheel = function (delta) {
	// and here all the script
}
Mouse.addListener(mouseListener);
If I adjusted your script to mine then it'd be:
Code:
mouseListener = new Object ();
mouseListener.onMouseWheel = function (delta) {
	if (_root.clicked){
		// and here all the script
	}
}
Mouse.addListener(mouseListener);
So if things wouldn't scroll every time I'd want stuff to scroll when I used the first code [mine] then things would only scroll in less situations when I'd use the second code [yours]...

But thanks anyway for trying to help me out, appreciate it

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote