# Cant apply style to ScrollPane

**URL:** <https://forum.kirupa.com/t/cant-apply-style-to-scrollpane/47875>\
**Category:** flash\
**Created:** [April 7, 2004, 9:33pm UTC](https://forum.kirupa.com/t/cant-apply-style-to-scrollpane/47875 "2004-04-07T21:33:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Widecad](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@Widecad](https://forum.kirupa.com/u/Widecad)\
**Post date:** [April 7, 2004, 9:33pm UTC](https://forum.kirupa.com/t/cant-apply-style-to-scrollpane/47875/1 "2004-04-07T21:33:09Z")

</div>

Hi, I think I have tried everything, and I cant get the styles to work. I am using a Scroll Pane component, I got the content to load succesfuly and is scrolling correctly, I just cant get the style to apply correctly. I have placed the following code in the first frame of my main scene where the Component resides.

MyPane = new FStyleFormat()  
MyPane.addListener(ScrollPane);  
MyPane.arrow=0x800080  
MyPane.background=0x000000  
MyPane.scrollTrack=0xA0522D  
MyPane.applyChanges()

Please tell me I am doing something wrong.

thanks in advance
