Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-24-2007, 12:27 AM   #1
Registered User
Join Date: Feb 2007
Posts: 171
Question seperating textArea alpha from scroll bar alpha

Anyone know of a way to edit the properties of a text Area's scroll bar?
like change its colors, graphics, etc?

Last edited by idyllhands; 05-24-2007 at 12:44 AM.
idyllhands is offline   Reply With Quote
Old 05-24-2007, 12:44 AM   #2
Developer developer de...
Join Date: May 2007
Posts: 3
Post Separate component


Check the livedocs for UIScrollBar component:


The example at setScrollTarget() should be enough for what you intend to do.

Another example. I have a MovieClip named content_mc which contains a text field named content_txt and an instance of the UIScrollBar named content_sb. The code goes something like:

content_mc.content_sb.setScrollTarget(content_mc.c ontent_txt);
content_mc.content_sb.setSize(16, content_mc.content_txt._height);
content_mc.content_sb._x=content_mc.content_txt._x +content_mc.content_txt._width+14;
content_mc.content_sb._y=content_mc.content_txt._y ;
content_mc.content_sb.lineScrollSize = 2;
content_mc.content_sb.pageScrollSize = 5;

You could easily add something like:


[Note: Those 14 pixels are there for padding between scrollbar and textbox]

Hope it helps
alexandre.madurell 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
scroll bar question AFFIX ActionScript 2.0 0 05-04-2007 02:36 AM
Has anyone made a scroll bar for a dynamic amount of content? mwiley43 Flash 8 General Questions 8 05-01-2007 02:56 PM
Custom Scroll bar 2.0 freak ActionScript 2.0 2 04-29-2007 05:53 AM
Vertical Scroll Pan Class Almost Works Fine st33d ActionScript 2.0 1 04-18-2007 12:21 AM
Scroll bar problems stevevoot ActionScript 2.0 2 04-05-2007 07:26 PM

All times are GMT. The time now is 08:33 AM.

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.