# Undefined message

**URL:** https://forum.kirupa.com/t/undefined-message/278552
**Category:** Uncategorized
**Created:** [January 1, 2009, 7:16pm UTC](https://forum.kirupa.com/t/undefined-message/278552 "2009-01-01T19:16:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)
#### Post date: [January 1, 2009, 7:16pm UTC](https://forum.kirupa.com/t/undefined-message/278552/1 "2009-01-01T19:16:54Z")

</div>

I have 5 dynamic textboxes qu1,qu2…qu5 and when I press the button I somtimes get an “undefined” messages in some texboxes…could you please fix that;?  
thanks

```php
on(press){
var dizi=new Array("","we","you","he","she","it","I","they")
 
for(var i=0;i<6;i++){
 
var say=Math.floor(Math.random()*dizi.length)+1;
_root["qu"+i].text=dizi[say];
 
}
 
 
 
} 

```
