pmineault
10-15-2004, 03:12 AM
Here's a little warning for you application creators. There's a very weird bug in combobox where it will stop working properly if you add a method to the Object prototype. For example, you can try placing this in your first frame:
Object.prototype.anythingatall = function(){ }
Now drop an instance of ComboBox on stage and add three different values in the labels array to it. Now test your movie. The first value appears. Click on the combobox, it works. Now select a value. Click on it again. All values have been replaced with the first label. Now select a new value. Click again to open the combo box. All values are simultaneously selected!
I discovered the bug while developping a very large application (2000+ lines of code), and it took me quite a while to find out what the source is. Hope this is useful to someone.
Object.prototype.anythingatall = function(){ }
Now drop an instance of ComboBox on stage and add three different values in the labels array to it. Now test your movie. The first value appears. Click on the combobox, it works. Now select a value. Click on it again. All values have been replaced with the first label. Now select a new value. Click again to open the combo box. All values are simultaneously selected!
I discovered the bug while developping a very large application (2000+ lines of code), and it took me quite a while to find out what the source is. Hope this is useful to someone.