PDA

View Full Version : applying style to scrollbars


stephaneey
10-08-2003, 06:26 AM
Hi,

Can anybody tell me why the ... code below doesn't work?


tables.setStyle("backgroundColor", "0x9CCFCE");
tables.setStyle("fontFamily", "Verdana");
tables.setStyle("fontSize", "12");
tables.setStyle("color", "0xFFFFFF");
tables.setStyle("selectionColor", "0xFFFFFF");
tables.setStyle("rollOverColor", "0xFFFFFF");
tables.setStyle("textSelectedColor", "0x333333");
tables.setStyle("scrollTrackColor", "0xFFFFFF");


This code applies correctly the color, the background color, font size... but doesn't change anything to the scrollbar.

Moreover, if I try for instance this code:

_global.style.setStyle("backgroundColor", "0x9CCFCE");

it doesn't change the background colors of the components belonging to the document although I followed step by step what Flash's help advise to do.


If you have an idea. Thanks to let me know.

Regards

hangalot
10-08-2003, 09:11 AM
try using GlobalStyleFormat or FStyleFormat.

stephaneey
10-08-2003, 09:13 AM
Hi,

Thanks for your answer but I forgot to specify that I'm using mx2004. These objects are obsolete now.

Thanks anyway.

hangalot
10-08-2003, 09:18 AM
erlich? that sucks.

stephaneey
10-08-2003, 09:20 AM
yeah, and the problem is that mx2004 is too recent to get good documentation.

The code I posted in my first thread comes from Flash's help but it doesn't work like many things in MX2004. Quite buggy this version.

hangalot
10-08-2003, 09:26 AM
there is some updated documentation availible from the MM site, and i sa a whole section on reskinning components, so maybe that could help.

stephaneey
10-08-2003, 09:28 AM
yes I'm struggling with that for a while now.

Thanks

stephaneey
10-08-2003, 11:02 AM
well, actually I was trying to get help in Flash's help. Could you give me the link where you found documentation about skinning in mx2004, I can't find that info on MM's web site.

Thaks

hangalot
10-08-2003, 11:26 AM
link (http://www.macromedia.com/support/documentation/en/flash/)

hangalot
10-08-2003, 11:27 AM
get the components pdf. truly well worthit.

stephaneey
10-08-2003, 11:31 AM
Done!

Thanks.