I found out that had to use Arrays of course.
var Nummer = new Array(1,2,3,4);
randomNum = random(Nummer.length);
//////
texter.gotoAndStop(randomNum);
trace("numbers left:" + Nummer);
I tried to delete the numbers inside the Array with this:
t1.onRelease = function(){
delete _parent.Nummer[1];
_parent._parent.gotoAndPlay(1);
}
But it did not work.
Anyone see what´s wrong?
/Mattias




Reply With Quote