あんなこと

that kind of thing

→ あんな
phrase Uncommon #11,412
that kind of thing Refers to something distant in context, often an action or remark. It can carry a disapproving or regretful tone.
JA: 彼にあんなことを言うべきじゃなかった。
EN: I shouldn't have said that kind of thing to him.

もしあの時、彼が私と一緒にいてくれたら、私はあんなことはしなかったのだが。

If only he had been with me then, I wouldn’t have done such a thing.

あんなこと言わなきゃよかった。

I wish I hadn’t said that.

私ったら何であんなことしたんだろう?

Why on earth did I do something like that?

もうあんなことは二度とごめんだ。

I never want to go through something like that again.

トムは何であんなことやったんだろう。

I wonder why Tom did such a thing.

今度あんなことやったら殺すぞ

If you ever do something like that again, I'll kill you.

— レオン (1994)

あんなこと、彼女に言うべきではなかったのに。

I shouldn't have said that to her.

あんなこと言ってごめんね。

I'm sorry for saying something like that.

この辺であんなことは起きないよ。

Nothing like that happens around here.

トムって、どうしてあんなことしてるの?

Why does Tom do things like that?

あんなこと

Something like that

— かぐや姫の物語 (2013)

あんなこと信じた私がバカだったんだ!

I was an idiot for believing something like that!