Home Tutorials Forums Articles Blogs Movies Library Employment Press

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

Thread Tools Rate Thread Display Modes
Old 03-16-2006, 07:00 PM   #1
Registered User
Join Date: Jul 2005
Posts: 153
Default UIscrollbar shows up for textfield even if doesnt overflow

The UIscrollbar componant shows up for a textfield its binded to even if doesnt the textfield doesnt overflow which looks ugly...
the picture explains it all. any suggestions?
maybe check to see somehow if textfield overflows, and if so hide the UIscrollbar? is that the solution?

the scrolbar shows up for the text scores on the left, u can see it next to the words 'weak, puny human' hehe
Attached Thumbnails
Click image for larger version

Name:	ScreenShot001.jpg
Views:	330
Size:	9.4 KB
ID:	16985  

Last edited by arianhojat; 03-16-2006 at 07:34 PM.
arianhojat is offline   Reply With Quote
Old 03-18-2006, 12:59 AM   #2
Banned by AS.org Staff
Join Date: Mar 2002
Posts: 10,533
Default On the right track...

Have a look...
Attached Files
File Type: zip scrollbar.zip (57.0 KB, 454 views)
oldnewbie is offline   Reply With Quote
Old 03-01-2008, 12:27 PM   #3
Registered User
Join Date: Mar 2008
Posts: 1
Smile Make the scrollbar disappear

Found a simpler way:

//count the number of lines the text field shows, e.g. 28
//if it is showing more than 28, then bottomScroll will always equal 28
//if it is showing less, then bottomScroll will be less then 28

if(text.bottomScroll >= 28){
trace (". turning scrollbar on");
textScrollBar.visible = true;
} else {
trace (". turning scrollbar off");
textScrollBar.visible = false;
jondennis is offline   Reply With Quote
Old 11-20-2008, 07:14 PM   #4
Senior Member
Join Date: Mar 2002
Location: Chantilly, Va
Posts: 108
Send a message via Yahoo to ljones

Could also try...

			_text.text = _allText;
			if (_text.numLines >= 9) {
				trace (". turning scrollbar on");
				_scroller.visible = true;
			} else {
				trace (". turning scrollbar off");
				_scroller.visible = false;
Best regards,
ljones 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
UIScrollBar makes wrong file size and loader? zerooito Components 0 02-16-2006 12:21 PM
Anyway to hide UIScrollbar if no text overflow arianhojat ActionScript 2.0 1 08-02-2005 12:28 PM
UIScrollBar Works Normally But Not With Preloader Jerble Components 3 02-20-2005 05:26 PM
Loaded external swf. shows stuff off stage. Don't want this. PCGamre Simple Stuff (Newbies) 1 10-08-2004 06:43 PM
my preloader shows up when its about past 75% lester Other Flash General Questions 2 08-07-2002 02:52 AM

All times are GMT. The time now is 02:05 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.