5 Replies Latest reply on Jul 24, 2008 8:04 AM by kglad

    Flash 7/ AS 2 code upgrade

    namaqua
      I have some code that has been running as AS1/Flash 6 for a while, and I need to upgrade it tp AS2/Flash 7. I'm having a number of problems and the one I can't resolve is the following:

      _root.N1["button"+count].ButtonText.text = NavArray ;

      I have cleaned up the declaration of variables and made sure the data types are compatible. The problem lies in the ..N1["button"+count].. part. It seems that the new compiler won't recognise this way of creating a series of addresses. If I type in a literal ..N1["button1"].. it works fine, but is limited to only one instance of the button. How can I create a composite name that will accept the text variable? Instead of the text I get an "undefined" error statement. Thanks!