« Flash Based Holdem Poker | Main | Sourceforge Project »

Creating a Flash Card Deck

Well, I posted about making a poker game in flash a couple days ago. Now I will add the code I used ot actually make the deck with the 2 arrays we made.

1   function createNewDeck ():Array {  
2       var array:Array = new Array;  
3       for (i = 0; i < cardSuits.length; i++) {  
4           for (j = 0; j < cardSigns.length; j++) {  
5               array.push (cardSigns[j] + " " + cardSuits[i]);  
6           }  
7       }  
8       return array;  
9   }  

TrackBack

TrackBack URL for this entry:
http://www.crisgriffith.com/cgi-bin/mt/mt-tb.cgi/54

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on April 24, 2008 7:00 AM.

The previous post in this blog was Flash Based Holdem Poker.

The next post in this blog is Sourceforge Project.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.34