What does ‘fling’ mean?

( n ) A short affair or romance. Phil Anders and Constance Noring had a brief fling that ended on a sour note.
( n ) A try or attempt at something. Horace gave flipping burgers a fling but decided it was not his cup of tea.