# Error #1010 by retrieving data (AMFPHP)

**URL:** https://forum.kirupa.com/t/error-1010-by-retrieving-data-amfphp/274328
**Category:** flash
**Created:** [October 28, 2008, 3:43pm UTC](https://forum.kirupa.com/t/error-1010-by-retrieving-data-amfphp/274328 "2008-10-28T15:43:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jarah](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@jarah](https://forum.kirupa.com/u/jarah)
#### Post date: [October 28, 2008, 3:43pm UTC](https://forum.kirupa.com/t/error-1010-by-retrieving-data-amfphp/274328/1 "2008-10-28T15:43:15Z")

</div>

Hello,  
I’m trying to display data from my MySQL database with AMFPHP. That works fine and I see the text, but I still get an error:

TypeError: Error #1010: A term is undefined and has no properties.  
at index\_fla::chart\_42/onResultaat()

```auto

function onResultaat(responds:Object):void {
        var t:Array = responds.serverInfo.initialData;
        for(var i:uint = 0; i < 5; i++) {
                var q:Charttext = new Charttext();
                addChild(q);
                q.chart_txt.text = t*[1];
        }
}

```

If I replace it with this, I don’t get the error. I hope someone can help me.

```auto

q.chart_txt.text ="Test";

```

Thanks
