The tag is used with properties to provide code hints for this property and to indicate a possible list of values ββthat the property can take when used in mxml. Unlike the [Bindable] metadata, this tag has little effect on the way the code works (other than specifying a default value) - this is mainly used to indicate the direction of Flex Builder regarding how to handle a particular property.
[Inspectable] metadata tag
Defines the attribute that is provided to users of the component in the attribute tooltips and Flex Builder tag meter. Also limits valid property values.
For example, the verticalScrollPolicy property of the mx.core.Container class has the following [Inspectable] tag.
[Inspectable(category="General", enumeration="off,on,auto", defaultValue="auto")] public function get verticalScrollPolicy():String { return _verticalScrollPolicy; }
This tells Flex Builder that this property should appear on the General tab (this is the βCommonβ in my FB) of the Flex Builder Property inspector (open the mxml file, go to the Windows menu and select Flex Properties to open the Property inspector - at the top inspector tabs, next to its name, you will find buttons for switching to standard view, category view and alphabetical view). This property can take one of three values off , on , auto , and if none is specified, it takes auto as the default value.
I have never used this tag, and I believe that you will not use it either, unless you are writing a Flex API that will be used by a wider audience than your colleagues (or if you are a perfectionist).
source share