here is the bit of code that i’m having problems with. what i want is a bunch of dots in random places but they all seem to end up right in the middle of the stage. any help would be greatly appreciated.
newgame = function (dots:Number) {
mcs = [];
for (var i =0; i < dots-1; ++i) {
var mc = this.duplicateMovieClip(dot, "dot"+i, 1+i);
mcs* = mc;
mc._x = ballRadius+random(Stage.width-ballWidth);
mc._y = ballRadius+random(Stage.height-ballWidth);
trace ("x = " + mc._x);
trace ("y = " + mc._y);
trace ("");
}
}