Skip navigation
Currently Being Moderated

Error when mouseX is used

May 11, 2012 4:30 AM

Tags: #flash #cs5.5 #actionscript_3.0

I assined x and y positions for a movieclip to mouseX and mouseY. But while executing I am getting the error #1010 A term is undefined and has no properties...

 

By debugging I found that error is in that line only.

 
Replies
  • Currently Being Moderated
    May 11, 2012 4:38 AM   in reply to bhargavi reddy

    What is the line and what is the error message?

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 4:45 AM   in reply to bhargavi reddy

    Try using the trace() function to see if tempcell is around when you try to assign it an x value.  While you are at it try tracing everything in that line to see what falls out.

     

    trace(tempcell, tempcell.x, mouseX);

    tempcell.x = mouseX;

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 5:21 AM   in reply to bhargavi reddy

    YOu should try to make a habit of using the trace() function, not only for troubleshooting, but equally so as a development tool that you use to check how things are processing as you advance thru a design.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points