bosom buddies is the show where he was fiddling with himself and flashing it to the camera...hard to find the video..his PR team does a good job of getting it removed
https://www.usasupreme.com/decades-old-video-surface-showing-liberal-darling-tom-hanks-exposing-himself-to-men-women-and-children-on-a-movie-set/