Two new features:
1. You can delete all of the cards on the board. Using the console (see the new "Console" button at the bottom of the app), type in "deleteAllCards".
2. You can add new cards to the deck by using the console command, "loadCard" or "loadCards"
a) Use this to load standard cards such as "AH", "2S", "JOKER", etc...
b) Use this to load any PNG, GIF, or JPG via URL. As long as the application has permission to do this, it can load the picture. (See Allowing cross domain loading).
Examples:
The complete Pinochle deck:
loadCards 9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS,9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS,9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS,9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS
A GIF file with a transparent background:
1. You can delete all of the cards on the board. Using the console (see the new "Console" button at the bottom of the app), type in "deleteAllCards".
2. You can add new cards to the deck by using the console command, "loadCard" or "loadCards"
a) Use this to load standard cards such as "AH", "2S", "JOKER", etc...
b) Use this to load any PNG, GIF, or JPG via URL. As long as the application has permission to do this, it can load the picture. (See Allowing cross domain loading).
Examples:
The complete Pinochle deck:
loadCards 9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS,9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS,9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS,9D,TC,JH,QS,KD,AC,9H,TS,JD,QC,KH,AS
A GIF file with a transparent background:
loadCards http://card-board.weebly.com/uploads/6/3/9/8/6398599/8809500_orig.gif
The above examples will work with the Card Board application on the demo pages.
(P.S. For the code cowboys who are just fiddling around. If you download the SWF file and run it off your local machine, the cross domain restrictions do not prevent you from loading images from practically any source.)
The above examples will work with the Card Board application on the demo pages.
(P.S. For the code cowboys who are just fiddling around. If you download the SWF file and run it off your local machine, the cross domain restrictions do not prevent you from loading images from practically any source.)