I did a google
card games actionscript
link below would let you start small, and build up.
coding a card game is a large activity, but once you understand what code does a certain game of cards, the other games, such as poker, are also using the things you learned.