0 Replies Latest reply on Sep 5, 2007 12:37 AM by pascal_roobrouck

    change textfield on BUTTON at runtime

    pascal_roobrouck
      I have a movieclip in my symbol library named "sButton", inside this symbol there is a textfield named "tLabel".
      when I attach this clip at runtime...
      this.attachMovie("sButton", "mcNew", this.getNextHighestDepth());
      ... I am able to change the label inside the movieclip with...
      this.mcNew.tLabel.text = "some new label text";

      Now when I change the symbol type from 'movieclip' to 'button', I can't change the textfield contents anymore... the compiler accepts the code, but at runtiime the textfield is not changed. Is there a way to address the elements of a button symbol at runtime

      Thanks,

      P