 					binaryNode.appendChild(avatarBase64);
 					avatarNode.appendChild(binaryNode);
 				}
-				catch(err:Error)
-				{
-					throw new Error("VCard:saveVCard Error converting bytes to string " + err.message);
+				catch(error:Error)
+				{
+					throw new Error("VCard:saveVCard Error converting bytes to string " + error.message);
 				}
 
 				var typeNode:XML = <TYPE/>;

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

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

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