# Error #1010

**URL:** https://forum.kirupa.com/t/error-1010/331796
**Category:** Uncategorized
**Created:** [October 23, 2013, 7:39am UTC](https://forum.kirupa.com/t/error-1010/331796 "2013-10-23T07:39:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thejerse](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@thejerse](https://forum.kirupa.com/u/thejerse)
#### Post date: [October 23, 2013, 7:39am UTC](https://forum.kirupa.com/t/error-1010/331796/1 "2013-10-23T07:39:03Z")

</div>

Hi.  
I am making a random Number generator and it is saying I have this error:  
TypeError: Error #1010: A term is undefined and has no properties.  
at Randomnumbergenerator\_fla::MainTimeline/frame1()

Here is my script:

```auto

/*add code to make the random number holder stop on its empty frame
In AS3 this must be done on the main timeline
Use the crosshairs (insert a target path) to help do this
*/ 
this.numberHolder_mc.gotoAndStop(11); 

var randomNumber:Number = Math.floor(Math.random()*10)+ 1;
    //return randomNumber;
	trace (randomNumber);
	//make the movie clip go to the frame that matches the number
	this.numberHolder_mc.gotoAndStop(randomNumber);
	// add an if statement to trace whether number is odd.
if ((randomNumber==2) || (randomNumber==4) || (randomNumber==6)|| (randomNumber==8) || (randomNumber==10))
    {trace("This number is even"); 
    this.message1.text="This number is even";
    }
    else 
    {trace ("This number is odd" )
    this.message1.text="This number is odd"
    }

```

Help please!:chinaman:
