I was wondering would you know how to turn off random, I took the feature off this string below but the entire script dies.

ranQuestion = random(domande.length)

I have tried...

ranQuestion = eval(domande.length)

ranQuestion = domande.length

Let me know if you have any ideas?

Thanks,

Kevin

---full script below
stop();

// Random generation Questions
Object.prototype.nextAnswer = function(){
//ranQuestion = random(domande.length);
ranQuestion = random(domande.length);
for(var i = 0; i < domande.length; i++){
if(ranQuestion == tempArray[i]){
var prosegui = false;
nextAnswer();
break;
}
var prosegui = true;
}
if(prosegui){
//tempArray.push(ranQuestion);
return ranQuestion;
}
}



// Remove the old points
Object.prototype.removePoints = function(what,keep){
for(var clips in _root.box){
if(_root.box[clips]._name.substring(0,_root.box[clips]._name.length -1) == what.substring(0,what.length-1) && _root.box[clips] != _root.box[what]){
_root.box[clips].point._visible = 0
}
}
}


// remove old answers
Object.prototype.removeAllAnswer = function(){
for(var answer in _root.box){
removeMovieClip(_root.box[answer])
}
}

// Build the Question
Object.prototype.buildQuestion = function() {
creaNuovoArray();
countAnswer++;
delete myChoice;
// call function to generate a random unique question
nextAnswer();
numero_domanda = "Question #" + countAnswer; // current Question
domanda = (domande[ranQuestion][0]) // Pulling Question txt
removeAllAnswer();
// build answers;
for(var i = 0 ; i < domande[ranQuestion][2].length ; i++){
nextRisposta();
duplicateMovieClip("box.answer","answer"+i,i)
//(20*i) - Increase space below answers
box["answer"+i].y_fin = answer0._y + (35*i)
box["answer"+i].txt = domande[ranQuestion][2][ranAns]
if(ranAns == domande[ranQuestion][1]){
box["answer"+i].thisChoice = true
} else {
box["answer"+i].thisChoice = false
}
}
box.answer._visible = 0
}

// Building random answers
function creaNuovoArray(){
delete tempRis;
tempRis = new Array();
}

Object.prototype.nextRisposta = function(){
// ranAns = random(domande[ranQuestion][2].length)
ranAns = array(domande[ranQuestion][2].length)

for(var i = 0; i < domande[ranQuestion][2].length; i++){
if(ranAns == tempRis[i]){
var prosegui = false;
nextRisposta();
break;
}
var prosegui = true;
}
if(prosegui){
tempRis.push(ranAns);
return ranAns;
}
}