Problem with Andy’s ShadowCaster Class?
Oktober 16th, 2008 • bugfix, flash, papervision3d
There seems to be a problem with the ShadowCaster Class created by Andy (my demoimplementation). Well I couldn’t recreate that bug but when you have this error:
“Error #1009: Cannot access a property or method of a null object reference.at ShadowCaster/projectVertex()”
this fix found here might help you out:
private var _type:String = "point"; //... ..// public static var DIRECTIONAL:String = "dir"; public static var SPOTLIGHT:String = "spot"; // replaced it with: private var _type:String = "dir"; // or "spot"
I can’t tell if this is a “good” or “bad” fix because I didn’t really test it.
Original post of the fix is here