> the same concepts and names for things as those languages? How about VB?
> C#? yes they do ... ok then theres ActionScript - I am not going to
> learn it becuase there are few commonalties, and it's too much of a
> pain. I would like to use Flash, it seems like it has potential but
> there is no need for me to learn that "Stage" is the same as "Screen"
> (again this is several people talking not just me).
If that's your view of AS, then I think you didn't spend much time at all
with it. Here's a sample of a part of an application in ActionScript:
initGame();
function initGame() {
cash = 100;
showCash();
}
// create a shuffled deck
function createDeck() {
// create an ordered deck
suits = ["c","d","s","h"];
temp = new Array();
for(i=0;i<6;i++) {
for(suit=0;suit<4;suit++) {
for(num=1;num<14;num++) {
temp.push(suits[suit]+num);
}
}
}
// pick random cards until deck has been shuffled
deck = new Array();
while (temp.length > 0) {
r = int(Math.random()*temp.length);
deck.push(temp[r]);
temp.splice(r,1);
}
}
// init hand arrays and bet
function initHand() {
playerHand = new Array();
dealerHand = new Array();
showDealerFirstCard = false;
bet = 5;
showBet();
}
// allow the player to increase her bet up to $25
function addToBet() {
bet += 5;
if (bet > 25) bet = 25;
showBet();
}
Pretty similar to the other languages you mentioned. Heck, you could lift
that code out and put it in a different language and with only very slight
mods have a working app.
Now considering that this whole discussion is way off topic, I'll stop here.
-Kevin
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

