ArrayCollection is initialized with ActionScript
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
public var myAC:ArrayCollection = new ArrayCollection([
{label:"A", data:"a"},
{label:"B", data:"b"},
{label:"C", data:"c"}
]);
</mx:Script>
</mx:Application>
Related examples in the same category