Flash: ReferenceError: Error #1069: FIX

by troy on December 7, 2008

ReferenceError: Error #1069: Property 0 not found on builtin.as$0.MethodClosure and there is no default value.
Damn typos.

for (var i=0; i < numChildren; i++) {
		var mc = getChildAt(i);} //Good form
//() NOT []
for (var i=0; i < numChildren; i++) {
		var mc = getChildAt[i];}  //< EVuhl Typo

{ 7 comments… read them below or add one }

boo July 14, 2009 at 6:44 am

Damn typos; hell ya; saved me millions of hours :D

mark adamczyk August 10, 2009 at 11:09 am

Coming from other languages, I thought ‘array’, not method. Thanks for pointing this out!

Lay Hudon September 18, 2009 at 9:17 am

Have this problem been solved ?I met it also,help me

troy September 20, 2009 at 6:32 am

Just keep digging commenting out half the code till it compiles, you’ll find the cause eventually. I can’t know, and I don’t have time to look at your code unfortunately.

Emi October 15, 2009 at 11:48 pm

Thanks man, without this post I may have wasted hours and hours and hour and hours….

laliqui November 15, 2009 at 6:09 am

omg, i am IDIOTTO!

mark February 6, 2010 at 10:36 pm

thank you. that would have killed me for hours

Leave a Comment

Previous post:

Next post: