dcsimg
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [RESOLVED] Error #1010: A term is undefined and has no properties. - My term is not undefined

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    resolved [RESOLVED] Error #1010: A term is undefined and has no properties. - My term is not undefined

    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 0num:int nCoverPoints.lengthi<numi++)
    {
         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.
    Last edited by omniscient232; 07-20-2009 at 03:10 AM.
    I program in AS3 only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center