Dodona gives you answers

How do I prevent a textfield in Actionscript from scrolling 1 line when it shouldn’t scroll?

leave a comment »

There is a strange bug in Actionscript which makes a textfield which shouldn’t scroll still scroll one line. I only found this bug in Windows and only when scrolling using the scroll-wheel.
The code below, although not very beautiful, will prevent the textfield from scrolling. I found it here.

myTextField.addEventListener(Event.SCROLL, onScroll);

function onScroll(evt:Event):void {
    myTextField.scrollV = 0;


Status: Tested it, works

Written by lutsen

September 12, 2008 at 11:28 am

Posted in Actionscript

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: