Posted on Tuesday 10 May 2005
While the vast majority of the components in the bit component set are compatible with Flash player 7, the combobox isn't, and my client wanted player 6 compatibility (yes, despite the new stats that are out). Now I thought the problem might be due to the use of getNextHighestDepth, but in fact Keith thought of this and getNextHighestDepth is only used when it's available, otherwise the dropdown is created on level 0xfffff. In any event, the real issue is the component properties; label and data aren't properly merged in the clip parameters. Here's the quick fix:
if(_root.getNextHighestDepth == null)
{
//Flash player 6
var p = com.bjc.controls.ComboBox.prototype;
p.clipParameters = {numRows:1, highlightColor:1, rowHeight:1, selectedColor:1, scrollBarWidth:1, data:1, labels:1}
com.bjc.controls.ComboBox['mergedClipParameters'] = com.bjc.core.BJCComponent['mergeClipParameters'](p.clipParameters, com.bjc.core.LabelWrapper['clipParameters']);
}
It would be really easy for FlashLoaded to fix the issue, and I am sure someone there is reading this blog, so send me the fixed mxp, will ya ;)


