<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,15 +1,15 @@
 package
 {
+	import flash.display.Sprite;
+	import flash.filters.DropShadowFilter;
+	
 	import org.openPyro.aurora.AuroraComboBoxSkin;
 	import org.openPyro.aurora.AuroraContainerSkin;
 	import org.openPyro.controls.ComboBox;
 	import org.openPyro.controls.List;
 	import org.openPyro.controls.listClasses.DefaultListRenderer;
 	import org.openPyro.core.ClassFactory;
-	import org.openPyro.layout.VLayout;
-	
-	import flash.display.Sprite;
-	import flash.filters.DropShadowFilter;
+	import org.openPyro.events.PyroEvent;
 
 	public class TestComboBox extends Sprite
 	{
@@ -24,8 +24,8 @@ package
 		private var _list:List;
 		private function testBasicList():void
 		{
-			_list = new List()
-			_list.skin = new AuroraContainerSkin()
+			_list = new List();
+			_list.skin = new AuroraContainerSkin();
 			var renderers:ClassFactory = new ClassFactory(DefaultListRenderer)
 			renderers.properties = {percentWidth:100, height:25}
 			_list.itemRenderer = renderers;</diff>
      <filename>examples/OpenPyroExample/src/TestComboBox.as</filename>
    </modified>
    <modified>
      <diff>@@ -48,7 +48,7 @@ package org.openPyro.containers
 				throw new Error(&quot;ViewStacks can only hold UIContainers&quot;);
 				return;
 			}
-			return super.addChild(child);
+			return addChildAt(child, this.contentPane.numChildren);
 		}
 		
 		override public function addChildAt(child:DisplayObject, index:int):DisplayObject
@@ -62,6 +62,10 @@ package org.openPyro.containers
 			_selectedChild = viewChildren[viewChildren.length-1];
 			_selectedIndex = viewChildren.length -1;
 			viewsChanged = true;
+			for(var i:int=0; i&lt;viewChildren.length; i++){
+				viewChildren[i].visible = false;
+			}
+			_selectedChild.visible = true;
 			return super.addChildAt(child, index);
 		}
 		</diff>
      <filename>src/org/openPyro/containers/ViewStack.as</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,6 @@ package org.openPyro.controls
 	import flash.filters.DropShadowFilter;
 	
 	import org.openPyro.aurora.AuroraContainerSkin;
-	import org.openPyro.controls.events.ButtonEvent;
 	import org.openPyro.controls.events.ListEvent;
 	import org.openPyro.controls.listClasses.DefaultListRenderer;
 	import org.openPyro.controls.skins.IComboBoxSkin;
@@ -164,7 +163,8 @@ package org.openPyro.controls
 				*/
 				_list.backgroundPainter = new FillPainter(0xffffff);
 		
-				_list.filters = [new DropShadowFilter(2,90, 0, .5,2,2)];
+				//_list.filters = 
+				
 				
 				listHolder.addChildAt(_list,0);
 				var overlayManager:OverlayManager = OverlayManager.getInstance();
@@ -181,20 +181,26 @@ package org.openPyro.controls
 					_list.height = _maxDropDownHeight;	
 				}
 				_list.dataProvider = _dataProvider;	
+				_list.dropShadowEnabled = true;
 				_list.addEventListener(ListEvent.ITEM_CLICK, onListItemClick);
 				_list.addEventListener(ListEvent.CHANGE, onListChange);
 				_list.validateSize();
+				_list.visible = false;
 				
 			}
 			
 			_list.selectedIndex = _selectedIndex;
 			
 			_list.y = this.height+2;
+			
 			_list.visible = true;
 			Effect.on(_list).slideDown(1).onComplete(function():void{
-				stage.addEventListener(MouseEvent.CLICK, onStageClick)
+					stage.addEventListener(MouseEvent.CLICK, onStageClick)
 			});
 			
+			
+			
+			
 		}
 		
 		protected function onStageClick(event:MouseEvent):void{
@@ -213,11 +219,14 @@ package org.openPyro.controls
 			close()
 		}
 		
-		public function get selectedIndex():int
-		{
+		public function get selectedIndex():int{
 			return _selectedIndex;
 		}
 		
+		public function get selectedItem():*{
+			return _dataProvider[_selectedIndex];
+		}
+		
 		protected function onListChange(event:ListEvent):void
 		{
 			_selectedIndex = _list.selectedIndex;</diff>
      <filename>src/org/openPyro/controls/ComboBox.as</filename>
    </modified>
    <modified>
      <diff>@@ -178,6 +178,14 @@ package org.openPyro.controls
 			return _maintainAspectRatio;
 		}
 		
+		/**
+		 * Unloads the image loaded by the &lt;code&gt;Loader&lt;/code&gt; 
+		 * instance
+		 */ 
+		public function unload():void{
+			this._loader.unload();
+		}
+		
 		protected function scaleImageContent():void
 		{
 		</diff>
      <filename>src/org/openPyro/controls/Image.as</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ef6f5ed8718d8d7ba237e80635ca5e0a2cf9b887</id>
    </parent>
  </parents>
  <author>
    <name>Arpit Mathur</name>
    <email>mathur.arpit@gmail.com</email>
  </author>
  <url>http://github.com/arpit/openpyro/commit/fe3727d0e5cd2ca80c4577baa581fafb00ca0de8</url>
  <id>fe3727d0e5cd2ca80c4577baa581fafb00ca0de8</id>
  <committed-date>2009-10-18T12:55:39-07:00</committed-date>
  <authored-date>2009-10-18T12:55:39-07:00</authored-date>
  <message>Changes to combobox including set selectedItem</message>
  <tree>6441749b77e25383588d2f3008bbfa0c245a1c5d</tree>
  <committer>
    <name>Arpit Mathur</name>
    <email>mathur.arpit@gmail.com</email>
  </committer>
</commit>
