 		
 		private function createList():List{
 			list = new List();
-			list.addEventListener(MouseEvent.CLICK, onListClick)
+			list.addEventListener(ListEvent.ITEM_CLICK, onListClick);
 			list.width = 200
 			list.percentUnusedHeight = 100;
 			
-			var layout:VLayout = new VLayout(0);
+			var layout:VLayout = new VLayout(2);
 			list.layout = layout;
 			
 			var rendererFactory:ClassFactory = new ClassFactory(Renderer);
 			rendererFactory.properties = {width:500, height:30}
 			list.itemRenderer = rendererFactory;
-			list.dataProvider = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
+			list.dataProvider = ["a", "a", "a", "a", "e", "f", "c", "b", "a"];
 			
 			list.skin = new AuroraContainerSkin()
 			return list;
 		}
 		
-		private function onListClick(event:MouseEvent):void
+		private function onListClick(_e:ListEvent):void
 		{
 			//container.horizontalScrollBar.visible = false;
 			//trace('list height: '+list.height, 'list measuredht: '+list.measuredHeight, 'hScrollBar y'+list.horizontalScrollBar.y)
+            trace(List(_e.target).selectedIndex+", "+List(_e.target).selectedItem);
 		}
 		
 		public function onStageResize(event:Event):void{

	
	import org.openPyro.aurora.AuroraContainerSkin;
	import org.openPyro.controls.List;
	import org.openPyro.controls.ScrollBar;
	import org.openPyro.core.*;
	import org.openPyro.events.PyroEvent;

		gr.drawRect(0,0,unscaledWidth,unscaledHeight);
		gr.endFill();
	}

    public function  get selected():Boolean {
        return m_selected;
    }

    public function  set selected(_selected:Boolean):void {
        //var e:Error = new Error();
        //trace(e.getStackTrace());
        m_selected = _selected;
        if(m_selected) {
            this.transform.colorTransform = new ColorTransform(1.1, 1.1, 1.1);
        } else {
            this.transform.colorTransform = new ColorTransform(1.0, 1.0, 1.0);
        }
    }

    public function  set baseListData(_bld:BaseListData):void {
        m_bld = _bld;
    }
}
