 				{
 					avatarBase64 = Base64.encodeByteArray(avatar);
 				}
-				catch(err:Error)
-				{
-					throw new Error("VCard:saveVCard Error encoding bytes " + err.getStackTrace());
+				catch(error:Error)
+				{
+					throw new Error("VCard:saveVCard Error encoding bytes " + error.getStackTrace());
 				}
 				
 				try

	import flash.events.*;
	import flash.utils.ByteArray;
	import flash.utils.Timer;

	//import mx.utils.Base64Decoder;
	import com.hurlant.util.Base64;

					binaryNode.appendChild(avatarBase64);
					avatarNode.appendChild(binaryNode);
				}
				catch(error:Error)
				{
					throw new Error("VCard:saveVCard Error converting bytes to string " + error.message);
				}

				var typeNode:XML = <TYPE/>;
