6 Replies Latest reply on Nov 1, 2011 11:22 AM by kglad

    TypeError: Error #1010: A term is undefined and has no properties.


      Hi there,


      I'm trying to make a minigame with dialogues. There's this thief which you caught and when you talk to him you have to choose the right dialogue answers so he doesn't freak out.
      I'm doing this with movieclips (and turning them into buttons with A.S. so I can make them fade in and out when you click on it). So to give you an example it looks like this:


      (Button: Hi there) Click on it -> Dialogue fades out with alpha.......... New dialogue fades in with alpha and you're able to pick another option.


      I've done this before and it worked all the time but when I tried it again today it starting bugging on me. I'm referring from one button to the other button with this code:




      I checked every symbol and they all have the correct instance name. Symbol level4 has the instance name Level4, symbol balkdialooglevel2 has the instance name balkdialooglevel2 and so forth.

      But when I test it and click on the button, it gives me this error:


      TypeError: Error #1010: A term is undefined and has no properties.


      I don't know what I'm doing wrong. Perhaps ActionScript didn't load the symbols yet when I'm trying to refer to it?

      And how do I fix this?


      It's quite a big deal that I'm able to fix this, since I'm making this project for the Police in the Netherlands. (School project).


      I'm sorry if my English isn't that good. As you can see I'm from the Netherlands.


      Thanks in advance!