Personal and Professional Blog of Rich Hauck

Flash CS3 ComboBox setStyle() for Text

October 24, 2007

I’ve been delving into Flash’s CS3 components and discovered that the typical Actionscript 3.0 setStyle() method doesn’t work with the ComboBox. The workaround is to set the styles for components within the ComboBox. Here’s an example:


var tf:TextFormat = new TextFormat();

tf.color = 0xFFFFFF;

myComboBox.textField.setStyle("textFormat",tf);
myComboBox.dropdown.setRendererStyle("textFormat", tf);


// specify "disabledTextFormat" to overwrite default
myComboBox.textField.setStyle("disabledTextFormat", tf);

Happy coding!

Categories: ActionScript, Flash

Save Torre!

October 14, 2007

Okay, so the Yankees didn’t make it past the ALDS… again. With management changing hands I have a feeling that George’s threat on Joe Torre’s job won’t come true, but Yankee fans voicing their opinions certainly doesn’t hurt. Sign up with Save Torre.

Categories: NYC

Next Reel International Film Festival

Well, I guess this is a testament to how busy last week was for me, since this festival has come and gone since I last posted… Regardless, I’m happy with how the Next Reel International Film Festival site came out.

nextreel.jpg

Categories: webdesign

About Me

Rich HauckI'm a designer, developer, and teacher based in Harrisburg, Pa. I run Hauck Interactive, Inc.




Archives