# Results screen of quiz not reading my arrays on frame 1!

**URL:** https://forum.kirupa.com/t/results-screen-of-quiz-not-reading-my-arrays-on-frame-1/210146
**Category:** flash
**Created:** [December 15, 2006, 1:47pm UTC](https://forum.kirupa.com/t/results-screen-of-quiz-not-reading-my-arrays-on-frame-1/210146 "2006-12-15T13:47:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![orlando2004](https://avatars.discourse-cdn.com/v4/letter/o/b5ac83/32.png) [@orlando2004](https://forum.kirupa.com/u/orlando2004)
#### Post date: [December 15, 2006, 1:47pm UTC](https://forum.kirupa.com/t/results-screen-of-quiz-not-reading-my-arrays-on-frame-1/210146/1 "2006-12-15T13:47:14Z")

</div>

Hi am building the results screen of a quiz and for some reason, my traces to these arrays are showing as undefined. Can anyone help? Here is the code on the Results frame…

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]stop[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

[COLOR=#000000] **function** [/COLOR] showResultsCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“Now showing results”[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#0000FF]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000] **var** [/COLOR] i:[COLOR=#0000FF]Number[/COLOR] = [COLOR=#000080]0[/COLOR]; i \< NumberOfChallenges; i++[COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR] [COLOR=#808080]_//This calls the length of the original array (not the spliced copy)_[/COLOR]  
[COLOR=#808080]_//trace(NumberOfChallenges);_[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“POPULATING TEXT FIELD WITH A RESULT NOW.”[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“QUESTION:”[/COLOR] + aChallenges[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]0[/COLOR][COLOR=#000000]][/COLOR] + [COLOR=#0000FF]newline[/COLOR][COLOR=#000000])[/COLOR]; [COLOR=#808080]_//write out the question_[/COLOR]  
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“ANSWER:”[/COLOR] + aChallenges[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]3[/COLOR][COLOR=#000000]][/COLOR] + [COLOR=#0000FF]newline[/COLOR][COLOR=#000000])[/COLOR]; [COLOR=#808080]_//write out the answer_[/COLOR]  
[COLOR=#808080]\*//resultsBox\_txt.text = \*[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]

showResultsCOLOR=#000000[/COLOR];  
[/LEFT]  
[/FONT]
