 	import aerys.minko.type.stream.format.VertexComponent;
 	import aerys.minko.type.stream.format.VertexComponentType;
 	import aerys.minko.type.stream.format.VertexFormat;
-
+	
 	import flash.utils.ByteArray;
 	import flash.utils.Dictionary;
 

			return stream;
		}

		public static function fromByteArray(bytes 		: ByteArray,
											 count		: int,
											 formatIn	: VertexFormat,
											 formatOut	: VertexFormat	= null,
											 isDynamic	: Boolean		= false,
											 reader 	: Function 		= null,
											 dwordSize	: uint			= 4) : VertexStream
		{
			formatOut ||= formatIn;
			reader ||= bytes.readFloat;

			var dataLength		: int						= 0;
			var data			: Vector.<Number>			= null;

				{
					bytes.position = start + formatIn.dwordsPerVertex * vertexId * dwordSize
									+ formatIn.getOffsetForComponent(componentsOut[componentId]) * dwordSize;
					
					var reader : Function = null;
					
					if (functionReader[componentsOut[componentId].nativeFormatString])
						reader = functionReader[componentsOut[componentId].nativeFormatString];
					else if (functionReader["defaut"])
						reader = functionReader["defaut"];
					else
						reader = bytes.readFloat;
					
					switch (nativeFormats[componentId])
					{
						case VertexComponentType.FLOAT_4 :
