layout="horizontal" creationComplete="onStartup()">
private var myArray:Array = [];
private function onStartup() : void {
ExternalInterface.addCallback( "addItem", function( str:String ) : void {
myArray.push( str );
theList.dataProvider = myArray;
});
ExternalInterface.call( 'jsLoaded' );
}