School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

ComboBox Component Setting styles

#1 bmcc81  Icon User is offline

  • D.I.C Regular
  • PipPipPip

Reputation: 1
  • View blog
  • Posts: 276
  • Joined: 10-July 07


Dream Kudos: 0

Share |

ComboBox Component

Posted 06 November 2007 - 06:11 AM

Hi,

The first option for the drop down menu works only. The 4 other after it don't work. I had it working and I thouhgt I t was this code, but now its not working. Is there something I'm missing or meesing up?
Posted Image

THANKS

//These are global Settings that enable you to set styles and color Schemes
_global.style.setStyle("themeColor", "0xBED7D7");
_global.style.setStyle("openEasing", mx.transitions.easing.Bounce.easeOut);

// SetStyle does the first color in the comboBox & dropdown.setStyle fix's the colors on the drop down menu
_root.main.combo.setStyle("backgroundColor",0xFFFFFF);
_root.main.combo.setStyle("borderStyle",0xFFCC00);
_root.main.combo.setStyle("color",0xFFFFFF);
_root.main.combo.dropdown.setStyle("backgroundColor",0xFFFFFF);
_root.main.combo.dropdown.setStyle("color",0x000000);


// These are the fields I created for the drop down
_root.main.combo.addItem({data:0, label:" combo"});						 // This one is made white

_root.main.combo.addItem({data:1, label:" General Inquiries"});			   // These one is made black
_root.main.combo.addItem({data:2, label:" Technical Support"});			   // These one is made black
_root.main.combo.addItem({data:3, label:" About The Web Site"});			  // These one is made black
_root.main.combo.addItem({data:4, label:" Other"});




Was This Post Helpful? 0
  • +
  • -


#2 girasquid  Icon User is offline

  • Barbarbar
  • Icon

Reputation: 98
  • View blog
  • Posts: 1,793
  • Joined: 03-October 06


Dream Kudos: 825

Re: ComboBox Component

Posted 06 November 2007 - 05:25 PM

Maybe I'm missing something, but...where is the dropdown? I can't see anything that's marked as "combo" or any of the other entries your code says should be there.
Was This Post Helpful? 0
  • +
  • -

#3 DilutedImage  Icon User is offline

  • D.I.C Addict
  • Icon

Reputation: 14
  • View blog
  • Posts: 644
  • Joined: 20-November 06


Dream Kudos: 25

Re: ComboBox Component

Posted 07 November 2007 - 01:15 AM

I created a test file, using the last five lines of code, and it worked. Did either of your instance names change ("main" or "combo")?
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users