# Problem with 'TypeError'

**URL:** <https://forum.kirupa.com/t/problem-with-typeerror/309532>\
**Category:** flash\
**Created:** [May 17, 2010, 10:32pm UTC](https://forum.kirupa.com/t/problem-with-typeerror/309532 "2010-05-17T22:32:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavyG](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@DavyG](https://forum.kirupa.com/u/DavyG)\
**Post date:** [May 17, 2010, 10:32pm UTC](https://forum.kirupa.com/t/problem-with-typeerror/309532/1 "2010-05-17T22:32:16Z")

</div>

Hi all

I’m getting an error:

TypeError: Error #1010: A term is undefined and has no properties.  
at Main/initGame()  
at MethodInfo-7()

Here are my source files:

[http://www.dvgr.be/flash/flash.rar](http://www.dvgr.be/flash/flash.rar)

I’m also looking for a simple way to show my ‘enemies’ on random base on my platform screen. I already made an array with the x and y coordinates but I don’t know how to make AS3 print them on a random way on the platform windows.

Please take a look, hopefully someone can help me.

Greets
