Skip to main content
Known Participant
May 25, 2009
Answered

error 1010? Undefined property...

  • May 25, 2009
  • 1 reply
  • 684 views

I am just having some issues with some simple code, and not exactly sure why. Here is the error I am getting:

TypeError: Error #1010: A term is undefined and has no properties.
    at sliSiteUpdate_fla::MainTimeline/aboutOut()


I believe it is asking for the function properties, however, those are specified in the frame as below:

btn_aboutHit.addEventListener (MouseEvent.MOUSE_OUT, aboutOut);

function aboutOut (e:MouseEvent):void{
    this.mc_about.gotoAndPlay ("aboutOut")
}

So, I am a bit confused as to what it is actually asking me to do / provide? Thanks.

This topic has been closed for replies.
Correct answer Ned Murphy

Check, then doublecheck all your instance names to make sure they agree with your code.  You mentioned mc1 and it has no relevance to the code you showed.

Then, check to be sure that the items you are trying to assign code to exist in the same frame where the code does.  If these object are inside other objects somewhere down a timeline, they are not where the code is.

1 reply

bamaurerAuthor
Known Participant
May 25, 2009

to help out on this:

I have my mc1 placed on the main stage, with a alpha 0 graphic (hit state) placed on top of it. The idea, is that when you mouse over the hit, the button below responds, i have the same code in functional file, so not sure why i am getting this issue?

Ned Murphy
Ned MurphyCorrect answer
Legend
May 25, 2009

Check, then doublecheck all your instance names to make sure they agree with your code.  You mentioned mc1 and it has no relevance to the code you showed.

Then, check to be sure that the items you are trying to assign code to exist in the same frame where the code does.  If these object are inside other objects somewhere down a timeline, they are not where the code is.

bamaurerAuthor
Known Participant
May 25, 2009

thanks, you were right of course.