Customize Scrollbar

Customizing interface of the converted documents
Post Reply
Joined:Tue Nov 04, 2008 1:04 pm
Customize Scrollbar

Post by izzyw222 » Tue Nov 04, 2008 1:12 pm

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.

Joined:Sat Dec 15, 2007 4:48 pm

Re: Customize Scrollbar

Post by staff » Thu Nov 06, 2008 3:23 am

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)

Post Reply