In an AS file, why is this not flagged as an error since the array's
element type is declared to be Number while the code is initializing
it with String?

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

In some function...
stateA = ['Foo'];

Is the ArrayElementType metadata tag valid only when used in MXML? Is
there any way to enforce type safety when using Array and
ArrayCollection in AS?

Thanks
Vijay


Reply via email to