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