ComboBox bugs?
AS3/CS4 Flash Authoring Tool, Win
1. I created a combobox on the stage by dropping the component on the stage and positioning it. All well and good, but trying to set the contents in code resulted in nothing happening. Tried adding a DataProvider, tried adding items to the existing DataProvider - nothing. The items show in the debugger, but they're never reflected in the combobox. I finally removed the combobox and instantiated/positioned it in the code. With the code-instatiated version, I could modify the contents.
2. 'restrict' doesn't seem to work. I've set the 'restrict' property as follows:
<blockquote><code>
myCB:ComboBox = new ComboBox();<br/>
myCB.restrict = "0-9";
</code></blockquote>
According to the docs, that should restrict input to numbers only, but it doesn't. I can type anything I want into the editable field.
If, however, I do this:
<blockquote><code>
myCB.textField.restrict="0-9";
</code></blockquote>
that seems to work.
Bugs? Or am I doing something incorrectly?