lunedì, aprile 12, 2010

Random ActionScript 3 Tips

All of these are certainly available on the Adobe site and elsewhere, but since I  had to look them up I am repeating them here for easy reference.

*

Change the alpha value of all (except for text fields…which will only work if the font is embedded) objects in a Flash file.

root.alpha = .5;

*

Adding a dropshadow to the list portion of the combo box.

var dropShadowCombo:DropShadowFilter;

dropShadowCombo = new DropShadowFilter(5,45,0x000000,1,4,4,1,BitmapFilterQuality.HIGH,false,false,false);

var myComboBox = new ComboBox();

myComboBox.dropdown.filters = [dropShadowCombo];