PDA

View Full Version : No ScrollBar on ScrollPane...


coolbox
10-22-2007, 11:34 PM
Ok i have a Scrollpane with some image in it loaded from XML and it all works great apart from one thing. My ScrollBar doesnt show up. Im hoping this is kind of easy to fix, so if someone could let me know that would be great cheers.

At present all i have is a thin white space down the right of my scrollpane where the scrollbar should be. If i turn on Drag scroll everything works fine when i drag the contents of the scrollpane but if i turn it off there is no way to scroll the contents.

The actionscript code used to load the Scrollpane:

// Placement de la ScrollPane
attachMovie("ScrollPane", "Scroll_1", 2);

Scroll_1.setSize(250,400);
Scroll_1.contentPath = "CreationBouton";
Scroll_1.vScrollPolicy = "on";
Scroll_1.refreshPane();
Scroll_1.scrollDrag = true;

Scroll_1.setStyle("backgroundColor","0x474747");
Scroll_1.setStyle("shadowColor","0x474747");
Scroll_1.setStyle("borderStyle","none");



Cheers in advance

jsonchiu
10-23-2007, 04:08 AM
I've seen lots of problems with scrollpanes. Last year when I worked on a project, the scroll pane messes up so badly - first time visit will always result in no scrollbars because of loading bugs. If the height of the content is known, you should um... put a huge white square or something in your mc so that it makes the scrollbar to show up before the images are loaded.