# Class files and components

**URL:** <https://forum.kirupa.com/t/class-files-and-components/198789>\
**Category:** flash\
**Created:** [August 28, 2006, 5:53pm UTC](https://forum.kirupa.com/t/class-files-and-components/198789 "2006-08-28T17:53:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hybrid9](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@hybrid9](https://forum.kirupa.com/u/hybrid9)\
**Post date:** [August 28, 2006, 5:53pm UTC](https://forum.kirupa.com/t/class-files-and-components/198789/1 "2006-08-28T17:53:43Z")

</div>

I was trying out the DataGrid tutorial this morning and was trying to turn it into a class file, but I can’t get the DataGrid to populate!

How does one target/populate a component, movie clip, etc. with data from a class file?

I kept getting an error; “dataGridMain is not a method”

DataGrid Tutorial:  
[http://www.kirupa.com/developer/flash8/datagrid.htm](http://www.kirupa.com/forum/../developer/flash8/datagrid.htm)

thanks for any help,  
hybrid
