# Problem with array

**URL:** https://forum.kirupa.com/t/problem-with-array/224556
**Category:** Uncategorized
**Created:** [May 3, 2007, 8:46am UTC](https://forum.kirupa.com/t/problem-with-array/224556 "2007-05-03T08:46:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gerget](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@gerget](https://forum.kirupa.com/u/gerget)
#### Post date: [May 3, 2007, 8:46am UTC](https://forum.kirupa.com/t/problem-with-array/224556/1 "2007-05-03T08:46:03Z")

</div>

hi all,  
I made a quizz using this tuto [http://www.permadi.com/[COLOR=black][COLOR=black][COLOR=black][COLOR=black][COLOR=black]tutorial[/COLOR][/COLOR][/COLOR][/COLOR][/COLOR]/flashMXQuiz/index.html ](http://www.permadi.com/tutorial/flashMXQuiz/index.html)  
I try to make an [COLOR=black][COLOR=black][COLOR=black][COLOR=black][COLOR=black]array[/COLOR][/COLOR][/COLOR][/COLOR][/COLOR] at the end of the quizz but I have few problems :  
I want, for each answer, to get 3 things : question number, the answer, and if it’s right or wrong.  
i’ve done this in [COLOR=black][COLOR=black][COLOR=black]actionscript[/COLOR][/COLOR][/COLOR]:

```php

currentQuestionNumber1 =currentQuestionNumber -1;
 
var m:Number;
m=quizItems.length;
var sel:Array = new Array;
 
sel=["question " +currentQuestionNumber1,"answered " +answer,"answer " +validanswer];
 
myarray = new Array();
for (j=0;j<m;j++){
myarray[j] = sel;
}
 
trace(sel);

```

when I trace “sel” I get almost what I need.the problem is that I get for all questions the same answer.  
I know I need to use “push” fonction but I do not know how to do!!  
I need help!
