Page 1 of 1

Customize Scrollbar

Posted: Tue Nov 04, 2008 1:12 pm
by izzyw222
Is there any way to customize (skin) the scrollbar? I saw the strategy to customize the buttons by using the API, but I can't see a way to customize the scrollbar this way too. Is this possible?

Thank You.

Re: Customize Scrollbar

Posted: Thu Nov 06, 2008 3:23 am
by staff
Print2Flash documents use the standard ScrollPane Flash component to display their contents. So you may use this component interface and styles to customize the scrollbar appearance. To access a ScrollPane instance inside the document you need to use the follwoing reference:

Code: Select all

where p2f is the reference obtained from LoadPrint2FlashDoc function described at ... mFlash.php (you can access this functionality only from ActionScript 2).
ScrollPane component styles are described at ... 03975.html This allows a slight customization of scrollbars, for example, you can change a scroll button highlight color in this way:

Code: Select all

p2f.DocArea.setStyle("themeColor", 0x00FFFF)