 				
 				_bitmapDatas = null;
 			}
+			else if (_atf)
+			{
+				_resource.uploadCompressedTextureFromByteArray(_atf, 0);
+				_atf = null;
+			}
 			
 			if (!_resource)
 				throw new Error();

		
		public function setContentFromATF(atf : ByteArray) : void
		{
			throw new Error('Not yet implemented');
		}
		
		public function getTexture(context : Context3DResource) : TextureBase
		{
			if (!_resource)
				_resource = context.createCubeTexture(_size, Context3DTextureFormat.BGRA, true);
			
			if (_bitmapDatas != null)
			{
				for (var side : uint = 0; side < 6; ++side)

		{
			_bitmapDatas = new <BitmapData>[];
            _mipMapping = mipmap;
			_format = FORMAT_BGRA;

			var width	: Number = bitmapData.width / 4;
			var height	: Number = bitmapData.height / 3;
			
