Welcome, Guest
  • Author Topic: ScrollPane ScrollBar width  (Read 3389 times)

    Pluda

    • Senior Programmer
    • ****
    • Posts: 270
      • View Profile
    ScrollPane ScrollBar width
    « on: 12/23/08, 09:22 »
    Hello,

    I need to have a custom scrollbar in my scrollpane, I've custumized the skin with no problems, but the scrollpane scrollbar is very large for my intents.

    I've tryed everithing I can think of, but no luck, the width is always big

    what sould I do?

    this does nothing

    Code: [Select]
    sc_sp = sp.getChildAt(1);
    if(sc_sp is ScrollBar) {
    //true
    sc_sp.scaleX = 0.5;
    }

    this either

    Code: [Select]
    sc_sp = sp.getChildAt(1);
    if(sc_sp is ScrollBar) {
    //true
    sc_sp.setSize(8,200);
    }

    Thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: ScrollPane ScrollBar width
    « Reply #1 on: 12/23/08, 14:49 »
    In AS3 components, you can edit the skin and modify manually, look in the library for the component assets

    Jorge

    Pluda

    • Senior Programmer
    • ****
    • Posts: 270
      • View Profile
    Re: ScrollPane ScrollBar width
    « Reply #2 on: 12/23/08, 14:57 »
    hello Jorge,

    I did that, I can mess up with the skins, but not with the width or hiegth, I drw a rectangle to behave like the scroll bar, with 8 pixels width, but when publishing the bar became bigguer, with abaut 16 or 18 pixel width