Edit: nm, ignore this post. nPointValues[i] was undefined.
I'm getting a very strange error.
I have this piece of code.
PHP Code:
for (var i:int = 0, num:int = nCoverPoints.length; i<num; i++)
{
var thisPointArray:Array = nCoverPoints[i];
var thisPoint:Point = (nCoverPoints[i][0] as Point).clone();
var value:Number = evaluateCoverPoint(nCoverPoints[i], nHidingPoint);
trace("point: "+thisPoint+ " in array: "+nCoverPoints[i]);//this traces exactly what it should trace: point: (x=120.6434737365542, y=66.76395008012997) in array: ............
nPointValues[i][0] = thisPoint;
nPointValues[i][1] = value;
}
and i get the error:
TypeError: Error #1010: A term is undefined and has no properties.
Which references to this line:
PHP Code:
nPointValues[i][0] = thisPoint ;
I've tried to do it differently, by putting thisPoint.clone() and new Point(thisPoint.x ....), they dont work either. apparently thisPoint is undefined?
Why is thisPoint undefined?
Edit: nm, ignore this post. nPointValues[i] was undefined.