Hey everyone! :party:
I was looking at the random number tutorial here, (http://www.kirupa.com/developer/actionscript/tricks/random.htm) and I figured I’d do a test. So I opened up Flash, and made 3 movie clips. on the first frame I put this:
var dunno = Math.floor(Math.random()*(4-1))+1;
if (_var.dunno=1) {
this.a._x = 200;
this.a._y = 200;
} else if (_var.dunno=2) {
this.b._x = 200;
this.b._y = 200;
} else if (_var.dunno=3) {
this.c._x = 200;
this.c._y = 200;
}
I tested it out a bunch of times, but It just shows all of the movieclips on top of eachother. I tried so many things but I just can’t figure it out.
Can someone please help me?