Skip to main content
Participating Frequently
January 18, 2013
Question

1010: A term is undefined and has no properties.

  • January 18, 2013
  • 2 replies
  • 8496 views

TypeError: Error #1010: A term is undefined and has no properties.

     at GameController/update{}

is the error i have been getting

Here is my game = http://www.filehosting.org/file/details/412784/alt.rar

Test 3 is the main document

im not really sure what to do at the moment when i load my game and hit play it works fine for until an enemy appears then i get this error constantly

dont really know how i can explain any better over text

thanks alot

This topic has been closed for replies.

2 replies

Ned Murphy
Legend
January 18, 2013

Go into your Flash Publish Settings and select the option to Permit Debugging.  Then run the file again and review the error message.  That can help by including in the error message the line number where the error occurs.  Once you know which line is involved you can try to use the trace() function to isolate which element is undefined.

Inspiring
January 18, 2013

Go into your flash publish settings and check the box "permit debugging" now the error should tell you what line is causing the problem.

Overall it means that something doesn't exist, have the name you think it does, or is in a different scope at the time that line is trying to do something with it.

Participating Frequently
January 18, 2013

Thanks for replying and permit debugging is on thats what i got. It works fine when its just the game file im trying to add a menu to it so maybe their is a crossover?

Participating Frequently
January 18, 2013

Is that the complete error message that you get or is there more information that you did not copy from it?

If that's all you get for the message, then it looks like there might be something named update somewhere that is involved with the error.  If you can locate something of that then you should be able to use the trace() function to try to isolate what element is coming up as undefined.


That is the whole error message and ok i think the problem lies in the external action script file since there is nothing related to update in the main file.
Also sorry for being so bad at AS3 but how do i use trace?

Thanks for replying again!