6 Replies Latest reply on Oct 23, 2006 3:54 PM by .:}x-=V!P=-x{:.

    .as file createTextField problem

    asidfree
      Hello,

      I'm working on an interactive map. The map has buildings on it, each building has a class attached to it (Buildings.as). The class has a function that creates a label (using createTextField)and places it over the building. The function is called createLabel and the textfield is called txt.

      The problem I am having is when I compile the map in Flash, it complains at me each time I reference the txt I just created saying:
      quote:

      **Error** Buildings.as: Line 78: There is no property with the name 'txt'.

      How do I get this to compile properly? I'm using Flash MX Pro 2004. Thanks.

      (Attached is the Buildings.as file)