Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Other (specify version)
Language Found: English
Description
build: Flex Builds (01/19/10)
There is no code hinting on this property as the metadata is in the wrong place in the AS file.
The metadata needs to be able the getter/setter, but instead if above the private var 'creationPolicyNone'.
//----------------------------------
// creationPolicy
//----------------------------------
[Inspectable(enumeration="auto,all,none", defaultValue="auto")]
// Internal flag used when creationPolicy="none".
// When set, the value of the backing store _creationPolicy
// style is "auto" so descendants inherit the correct value.
private var creationPolicyNone:Boolean = false;
/**
- @inheritDoc
* - @default auto
- @langversion 3.0
- @playerversion Flash 10
- @playerversion AIR 1.5
- @productversion Flex 4
*/
public function get creationPolicy():String { // Use an inheriting style as the backing storage for this property. // This allows the property to be inherited by either mx or spark // containers, and also to correctly cascade through containers that // don't have this property (ie Group). // This style is an implementation detail and should be considered // private. Do not set it from CSS. var result:String = getStyle("_creationPolicy"); if (result == null) result = ContainerCreationPolicy.AUTO; if (creationPolicyNone) result = ContainerCreationPolicy.NONE; return result; }
/**
- @private
*/
public function set creationPolicy(value:String):void
{
if (value == ContainerCreationPolicy.NONE) { // creationPolicy of none is not inherited by descendants. // In this case, set the style to "auto" and set a local // flag for subsequent access to the creationPolicy property. creationPolicyNone = true; value = ContainerCreationPolicy.AUTO; }else
{ creationPolicyNone = false; }
setStyle("_creationPolicy", value);
}