That description is a little too vague to pin down confidently — there were dozens of Flash games built around a stick figure dodging obstacles.
If you can recall a detail or two, it narrows things fast: was it a side-on view or top-down, did you control the figure directly or place objects to protect it, and roughly when did you play it? Any one of those usually identifies the title.