Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 11-18-2005, 01:12 PM   #1
manojmathew
Registered User
 
Join Date: Oct 2005
Posts: 7
Default Disable scrolling by arrow keys and mouse wheel in a scrollpane

Is it possible to disable scrolling by keys and mouse wheel in a scroll pane...?
This is creating a lot of headache in one of my projects. When ever the scrollpane has focus and any event from arrow keys or mouse wheel occures, the content of the scroll pane is moving.

I have added a listener object which catches all events from LEFT, RIGHT, TOP, and DOWN arrow keys and mouse wheel and used the Selection.setFocus(null) on this event. It is working almost fine except for mouse wheel. If the mouse is on the scrollpane mousewheel scrolls the content. I have used another method to prevent this. In the onEnterFrame event of the scrollopane content, I wrote the following code.

if(this._x!=0){
this._x=0;
}
if(this._y!=0){
this._y=0;
}



Again the problem is that it creates a small jerking. The scrollpane will scroll actually and after scrolling the movieclip detects the position and then restore it to 0;


Any other method to do this...?????
manojmathew is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigation bar using the Arrow Keys grimaldi ActionScript 1.0 (and below) 2 06-19-2006 03:15 PM
How to control a movie clip's motion with keys while having it point at the mouse? psyflame ActionScript 1.0 (and below) 0 05-05-2005 12:05 AM


All times are GMT. The time now is 06:34 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.