AS3 slot machine

has anyone created a slot machine application and if so can share some of how to do it or point me to a tutorial online? Preferably using AS 3.0. I basically just need something where you click a button and get 3 random images and occasionaly get 3 of a kind. When you get 3 of a kind, and event will occur.