just in case this might help anyone tries to help
here is the code i'm using for the game:
stop();
//Set global highScore variables
highScore = 0;
//Set the properties for the game elements
_root.lastframe = false;
//Stop bullets
//See AS for bullet MC for details
setProperty(_root.crosshair, _visible, true);
setProperty(_root.bullet, _visible, false);
//
//Individual destroyed target images hidden until needed
setProperty(_root.target1d, _visible, false);
setProperty(_root.target2d, _visible, false);
setProperty(_root.target3d, _visible, false);
//As above. Individual highlighted target images hidden until
needed
setProperty(_root.target1Image, _visible, false);
setProperty(_root.target2Image, _visible, false);
setProperty(_root.target3Image, _visible, false);
mouse.hide();
//hide mouse to use cross-hairs
//select a target to shoot at random then add that target
//to the array of selected targets so that it isn't used
//again in this game.
//When the number of direct hits against the selected
//target has been reached. Find another random target.
//Check whether it exists in the array. If yes, select
//again. If no, make visible.
_root.targets = new Array();
//create array on the main
//timeline so that it is
//easily accessed by all MCs
_root.targets[0] = "target1";
_root.targets[1] = "target2";
_root.targets[2] = "target3";
//3 targets we are using in
//tutorial
n = _root.targets.length;
//get length of array
ran = random(n);
//get random number location to select from array
target = _root.targets[ran];
//show random array location
_root.activeTarget = target;
//create target variable
setProperty("_root."+target+"Image", _visible, true);
//show target
_root.targets.splice(ran, 1);
//remove the random element
//from the array. splice
//the random number found and
//to the depth of one so only
//one element is removed.
//-------------------------------------------------------//
var seconds:Number = 10;
time_txt.text = "";
function countDown() {
var time = seconds--;
time_txt.text = time;
if (time == -10) {
gotoAndStop("lose");
clearInterval(counter);
}
}
counter = setInterval(countDown, 1000);
any help will be appreciated
Spud