Problem with Andy’s ShadowCaster Class?

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

 

Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">