The combobox seems to stop working (but I still receive the event) after an 
element been selected and the ComboBox.setSize() method is called.

If no selection been made before setSize, the combo is working just fine.

Is there a workaround other than re-attaching a new combo box?

See the example:
http://www.lvlstudio.com/bug/resizeCombo.html

Here's the code, to try it yourself:

resize_mc.delegate = this;
resize_mc.onRelease = function ()
{
        this.delegate.resizeCombo();
}

this.resizeCombo = function ()
{
        var nCurrentSize = this.test_cb._width;
        
        this.test_cb.setSize(nCurrentSize == 100 ? 200 : 100);
}

Martin Tremblay


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 11/5/2005
 
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to