Quoted from the Flex documentation :

____
When you define an Array variable in ActionScript, you specify Array as the data type of the variable. However, you cannot specify the data type of the elements of the Array.


To allow the Flex MXML compiler to perform type checking on Array elements, you can use the [ArrayElementType] metadata tag to specify the allowed data type of the Array elements.

____


== Noncompliant Code Example

----
public var newStringProperty:Array;
public var newNumberProperty:Array;
----


== Compliant Solution

----
[ArrayElementType("String")] 
public var newStringProperty:Array;

[ArrayElementType("Number")] 
public var newNumberProperty:Array;
----


ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]
