Yes, in a quizz context "score logic" would be evidently understood as the logic for counting points (I should have thought to that… but I'm French ). I meant the logic in your score window : the frames and how you jump from one to the other. For example, if you have a different frame for each of the ten questions, I do'nt understand the need for those ten Boolean variables ?

Like ClayUUID, I'd like to understand what does it exactly means to "generate" the next question ? This suggests that the questions aren't hard-coded in your score ?

You're welcome, Jack You were just not providing enough information for us to help ! It's now getting clearer

I know understand why you needed those Boolean values to check already answered questions : you display the ten questions in a random order (important missing piece of the puzzle ).

The problem with your frame 5 code is that the random value between 1 and 10 could be the number of an already answered question (hence the need for a Boolean).

I suggest that in frame 1 you build a random permutation of the natural sequence 1, 2, 3, 4, 5 (I suppose only 5 questions) : take a random value in that array and move it into the second array (initially empty) ; repeat with the four remaining values ; three, two, one, repeat until the array is empty.

var defaultOrder: Array = [1,2,3,4,5];

var randomOrder: Array = [];

var randomIndex, nextQ: Number;

while (defaultOrder.length > 1)

{

// random index in the remaining items of defaultOrder array

randomIndex = Math.random() * defaultOrder.length;

// get the value at that random index and remove it from the defaultOrder array

nextQ = defaultOrder.splice( randomIndex, 1);

// add the value to the randomOrder array

randomOrder.push( nextQ);

}

// one value remaining in defaultOrder array

nextQ = defaultOrder.pop();

randomOrder.push( nextQ);

// the randomOrder array now contains a random permutation of the original defaultOrder array

trace( randomOrder);

Now nextQ = randomOrder.pop() will give you the next question to display.

And you just go to the corresponding frame via gotoAndStop("QuBk" +nextQ); (building the frame label by string concatenation).

If it helps, I may post a FLA file with that kind of structure (visiting frames in random order) you could build upon.