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 | } | |
![]() |
![]() |
![]() |






