Making the Bit component set ComboBox work with Flash Player 6

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 ;)


WordPress database error: [Can't open file: 'wp_comments.MYD'. (errno: 145)]
SELECT * FROM wp_comments WHERE comment_post_ID = '92' AND comment_approved = '1' ORDER BY comment_date

No comments have been added to this post yet.

Leave a comment




Your e-mail address is never displayed. If you run into issues with SpamKarma blocking you, email me at $patrick->5etdemi(com)


RSS feed for comments on this post | TrackBack URI