PDA

View Full Version : ComboBox Modify style color


alesspunk
01-17-2006, 07:51 PM
I have a defalut comboBox in my Website. but i want to is posible modify colors via Action Script.

Thanks a lot.

Aless;)

brynb
01-17-2006, 08:00 PM
I just went through the same thing. i read all about skinning and yaddah yaddah yaddah. But then I discovered:

_global.style.setStyle("themeColor", "0xAAEEFF");

the "0x"AAEEFF is the same as the HTML "#"AAEEFF. You can also set other hings like easeing:

_global.stlye.setStyle("openEasing", Bounce.easeOut);

and fonts using the _global.style.setStyle()

good luck.

Scottae
01-17-2006, 08:26 PM
Customizing the ComboBox component (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003166.html)
Using styles with the ComboBox component (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003167.html)

Example:

import mx.controls.ComboBox;
var my_cb:ComboBox = createClassObject (ComboBox, "my_cb", 1);
my_cb.dataProvider = [{label:"Hey"}, {label:"Hello"}, {label:"Howdy"}];
my_cb.setStyle ('color', 0xFF0000);

This example needs to be on a frame in main timeline of new movie. Also need ComboBox in your library.
:)

alesspunk
01-17-2006, 09:32 PM
thanks a lot for the help guys...