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);