Inspectable list values in component inspector

How can I code an inspectable list into my class so that my the list values are selectable in the component inspector?

I have them appearing fine in the component definition panel, but the values entered here seem to be overridden by the component inspector and the var doesn’t appear here unless I enter it manually and then there’s no way to make it a list.

In my class I have:


        [Inspectable(defaultValue="controls", type="list", enumeration="controls,noControls")]
        public var controlValue;

Or I suppose, more simply, how can I get the Component Inspector to respond to the code in the component’s class in the same way that the Component Definition Panel does?