 	import aerys.minko.render.geometry.stream.VertexStreamList;
 	import aerys.minko.render.geometry.stream.format.VertexComponent;
 	import aerys.minko.render.geometry.stream.format.VertexFormat;
+	import aerys.minko.type.Signal;
 	import aerys.minko.type.bounding.BoundingBox;
 	import aerys.minko.type.bounding.BoundingSphere;
 	import aerys.minko.type.bounding.IBoundingVolume;

				var vstream : IVertexStream	= vertexStreams[i];
				
				if (!vstream.format.equals(vertexStreams[0].format))
				{
					throw new Error(
						'All vertex streams must have the same vertex format.'
					);
				}
				
				setVertexStream(vstream, i);
			}

			
			vertexStream.unlock();
		}
		
		private function vertexStreamChangedHandler(stream : IVertexStream) : void
		{
			_changed.execute(this);
		}
		
		private function vertexStreamBoundsChangedHandler(stream : IVertexStream) : void
		{
			updateBoundingVolumes();
		}
		
		private function indexStreamChangedHandler(stream : IndexStream) : void
		{
			_changed.execute(this);
		}
	}
}
