4 Replies Latest reply on May 20, 2009 3:59 PM by efegirl

    Dynamic text in AS2


      Hi all,


      Could someone please help me out with this. **I've attached an image of the swf file.


      I'd like to be able to click on each of the buttons and have the background color change and also have its color name loaded in the dynamic text field.

      E.g. Clicking the white square would change the background color to white and should also display the text ''white'' in the dynamic text box.


      I've sorted out the colour changing part with the following code:

      on (press) {
      var colorful = new Color("_root.background");

      but I can't seem to get the dynamic text part working. Any ideas? I'd rather not load from an external file as the texts are short.


      Thanks in advance for your help