Can someone help me with the code required to do the action described in the comment block please?
<Script> import mx.collections.ArrayCollection; [Bindable] public var tempArray:ArrayCollection = new ArrayCollection(); private function showSelection(event:Event):void{ trace(slct.selectedIndex); /* Use the selectedIndex create an array name e.g. "data1", "data2", "data3", etc. Replace the contents of the tempArray collection with the contents of the array collection selected - "data1", "data2", "data3", etc. */ } </Script>