>> Are you doing this in a subclass of ScrollPane? If so, you could also define
>> a custom subclass of ScrollPaneSkin that calls setBackgroundColor(10) in its
>> constructor. We do something similar with some of the other Terra skins such
>> as TerraBoxPaneSkin.
>>
> OK, good to know. Yes, it's a subclass, but it's created from bxml, so I just
> placed styles="{ backgroundColor: 10 }" in there for now :)
You mean you are instantiating it in BXML? (you can't actually create a class
in BXML)
<MyScrollPane styles="{backgroundColor:10}"/>
That's certainly valid, especially if you don't want all instances of
MyScrollPane to use background color 10.
G