Hiall,

I need a bit of help with actionscript.

Basically I have a kind of shoot the duck game I created, there are 8 ducks and each one have a button so when each duck is shot an ad comes up.

Now the client wants something to happen when all the ducks have been shot, so I created this bit of AS which I put in the main timeline.

var count;
function doCount(){
count++;
if (count >= 8){
gotoAndPlay ("goose");
}
}

On each of the buttons, the AS is:

on (press){
_parent.ducks1_mc.duck_7_mc.gotoAndPlay(2);
_parent.ducks2_mc.duck_7_mc.gotoAndPlay(2);
_root.promos_mc.promo_07_mc.gotoAndPlay(2);
_root.doCount();
bt_7.enabled = false;
}
But everytime I shoot one it goes to "goose" when I want it to go there only when all the ducks have been "shot".

hope someone could help me.

Cheers