2 Replies Latest reply on Oct 4, 2007 7:18 AM by CharlesTCR

    Change Text on Library Button

    CharlesTCR
      I imported a button into my project's library and can add as many as I want using Actionscript, but I cannot figure out how to change the text that appears on it.

      E.G.

      var myButton:ButtonGreen = new ButtonGreen();
      myButton.name="digFactBtn";
      myButton.label="Facts";
      myButton.textField="Facts";
      myButton.x = 724;
      myButton.y = 22;
      myButton.width=150;
      myButton.height=45;
      addChild(myButton);

      Editing the library object to make the text field dynamic did nothing except give me a white filled box with no text. What am I doing wrong here?