linhdoha / leebrimelow

Automatically exported from code.google.com/p/leebrimelow
0 stars 0 forks source link

SimpleZSorter : Cannot access a property or method of a null object reference. #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems to be related to ( a lot of ) addChild/removeChild.

Here is the error
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
com.theflashblog.fp10::SimpleZSorter$/sortClips()[/com/theflashblog/fp10/SimpleZ
Sorter.as:46]

I changed the line 46 of SimpleZSorter.as and the error didn't show up.
sortArray.push(new SimpleZSortVO(displayObject, transformedMatrix.position.z));

becomes:
if(transformedMatrix) sortArray.push(new SimpleZSortVO(displayObject,
transformedMatrix.position.z));

Original issue reported on code.google.com by david....@gmail.com on 8 Apr 2009 at 7:35

GoogleCodeExporter commented 9 years ago
Thanks for spotting this issue, already wasted 4 hours :(

Worked fine within the player, would break the swf within the browser :S :(

sorted now though, thanks again! :)

Original comment by msfxstudios on 7 Aug 2009 at 2:32