use mime base64 to encode resources in JS/Flash8