Skip to main content
Arioman
Inspiring
January 29, 2013
Answered

make Default scrollpane component Smoother

  • January 29, 2013
  • 15 replies
  • 2863 views

hi

i found some manual scrolling content project and tutorial from the web and the scrolling is very smooth and fast ...

in Scrollpane component there are no any setting for changing speed or something like that .

is there any chance to edit setting or add some script to move scrollbar faster and smoother ...

it will be great if the height of scrollbar can be changeable too ...

thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer kglad

yes but not for default scrollpane component ,,,

in all other scrollbar tutorial in other sites i see they define a mask and scrollbar and content in script with special names

so it will be easy to use for one scrollbar project but when you have many you must edit many things and script everytime you want to use ...

cause the duplicate error comes in normal or test movie mode

for example i really love this scrollbar it`s really smooth ...

http://www.freeactionscript.com/2011/07/scroller-dynamic-scrollbar-v2/

he define scrollbar.as and some class folder !!

and i must rename or change objects everytime i want use it ...

--------------------------------------------------------------------------------------

and another thing i found scrollbar.as and scrollpane class in Adobe Flash Cs5 folders , but nothing change when i change it or even Remove all of it !!

what`s them ?  and why the changes not apear in my project ?!


no, don't change the name of the class.  use:

_scrollbar1 = new Scrollbar();
_scrollbar1.init(content1, contentMask1, track1, slider1);

_scrollbar2 = new Scrollbar();
_scrollbar2.init(content2, contentMask2, track2, slider2);

15 replies

kglad
Community Expert
Community Expert
January 29, 2013

it's almost always easier to make your own custom component than to use the default component, if the default doesn't work the way you want.

in this instance, it will be easier to make your own scrollpane (or use someone else's) than to use the default scrollpane.

Arioman
AriomanAuthor
Inspiring
January 29, 2013

thanks kglad , but i search around web and must of free scrollbar present as Flash Project and not component

they use mask technics for scrollbar and cant load Dynamic content easy like Scrollpane content

i have many scrollpane in my project now and it will take time and be hard to replace all of them with some new scrollbar

and there is one important problem for me in most of them :

they use a name and instance name for the content as movieclip ( for example must call " content " )

so i dont know how i must use this for more than 1 time in my project !! 

kglad
Community Expert
Community Expert
January 29, 2013

i'm not sure what your last question is.  are you asking how to use more than 1 scrollpane in your project?