A lot of people have been looking here for information on "Error #1010: A term is undefined and has no properties". One of the iframe posts is bringing people here, but they aren't getting any error details from the post. You can read more about this error and all other runtime errors in the language reference. This error most commonly occurs when you try to access a property on an undefined Array item. For example:
var array:Array = new Array();var noProp:Object = array[1].prop;
You may run into this error in the framework, especially in the datagrid. To read more about this, try a mail-archive.com search of flexcoders.
Comments (11)
Hey thanks! That's a rather odd error for a non-existent array element.
Posted by Daniel Lawhead | December 3, 2007 7:10 PM
Posted on December 3, 2007 19:10
Actually, I think you can get this error when you try to access the member that doesn't exist, or the member of a non-existent instance. For instance, I just looked this up when a friend was having an issue and it turned out he had forgotten to name the instance of an object (that he was trying to access).
Posted by HardlyNoticable | December 11, 2007 2:43 PM
Posted on December 11, 2007 14:43
I got this error in Flash and found your page via Google. It turned out I had not properly coded my for loop's condition and was trying to access an object that didn't exist. So thanks HardlyNoticeable and blog owner, you both led me to a quick and painless solution.
Posted by Cenovis | September 8, 2008 4:09 AM
Posted on September 8, 2008 04:09
I was migrating my flash animation from AS2 to AS3 and I forgot I had changed the instance names of two movie clips, but I didn't change the names in the Actionscript code. Your comments led me to a quick solution. Thanks!
Posted by Andres Calderon | November 26, 2008 12:06 PM
Posted on November 26, 2008 12:06
Thanks guys.
I got the error when trying to access an undefined index in an Array.
Hope this helps more people.
Posted by Mosselman | May 4, 2009 3:54 PM
Posted on May 4, 2009 15:54
Hi guys,
I just got over this 110 error. And i figured it out after some hors of stress with it. I thought i should post it here so that i might help someone int he future. My problem was that i had one MC that was creating a movie clip using a MenuItem object from the library. All fine and well but then at some point i loaded and external swf using loader class which had it's own lill menu using it's own MenuItem object. Remember was an external MC. And that is where the error popped up.
Solution: Renamed the MenuItem in the external MC into docItem. Works fine now.
Good luck
Posted by alin | May 15, 2009 6:11 AM
Posted on May 15, 2009 06:11
I've had that error in a little project, which use essentially Canvas and HorizontalList, and I've finally found that it was caused by the 3.4 SDK.
I've downgraded the compiler to 3.2 SDK, and everything is fine...
Hope that'll help somebody saving time =)
Posted by zGui | August 6, 2009 4:01 AM
Posted on August 6, 2009 04:01
Hello,
get this error #1010, while reading from a return of a PHP REST service. It turns out, that if somewhere in the returned array there are KEYS with spaces in associative arrays (and probably other not allowed XML characters/formats) the created XML is not valid and so the flash script gets this runtime exception.
Greetings, Ingmar
Posted by Ingmar Pforr | November 16, 2009 3:41 AM
Posted on November 16, 2009 03:41
regarding last post:
NOT CONFIRMED, had multiple errors, sorry!
Posted by Ingmar Pforr | November 16, 2009 10:18 AM
Posted on November 16, 2009 10:18
thx for the tip, I use debug to find the exact line
Posted by daniel | December 4, 2009 9:06 PM
Posted on December 4, 2009 21:06
Thanks for the tip. I was tryinhg to access a MovieClip that didn't exist.
Posted by Murdoch | January 7, 2010 6:04 PM
Posted on January 7, 2010 18:04