3 Replies Latest reply on Nov 7, 2006 11:59 AM by Newsgroup_User

    Numbers as Variables Names ???

    germaris
      The variables names returned by the server are numbers (and this CANNOT be changed or I must re-create a too large amount of tables, PHP scripts and re-write a too large part of my ActionScript).

      How can I manipulate them in order to make my Flah Movie accepts them?

      If additional information is needed or if you do not understand the problem please ask and I'll provide further explanation...
      :-)
        • 1. Re: Numbers as Variables Names ???
          Level 7
          Put text in front of the variable.
          Example:
          myVar[serverVar]

          It would return:
          myVar0 or myVar1 or whatever.

          You would have to define what the values are but this way you could match
          them up.
          --

          Dan Mode
          --> Adobe Community Expert
          *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
          *THE online Radio* http://www.tornadostream.com
          *Must Read* http://www.smithmediafusion.com/blog


          "germaris" <webforumsuser@macromedia.com> wrote in message
          news:eiqgdv$p8f$1@forums.macromedia.com...
          > The variables names returned by the server are numbers (and this CANNOT be
          > changed or I must re-create a too large amount of tables, PHP scripts and
          > re-write a too large part of my ActionScript).
          >
          > How can I manipulate them in order to make my Flah Movie accepts them?
          >
          > If additional information is needed or if you do not understand the
          > problem
          > please ask and I'll provide further explanation...
          > :-)
          >


          • 2. Numbers as Variables Names ???
            GerryIsHere Level 1
            Oh yeah !!!
            My intuitive approach was good as I put a letter r (as a convention) in front of the number (the name of the variable).
            I wrote:
            myVar.rserverVariable

            But, silly of me, I forgot the [ ] !!!!

            So I write now:
            myVar.r[serverVariable]

            I'll give it a try this evening and tell you tomorrow if it works...

            Many thanks for your help.
            Best regards.

            Gerard
            (also known as "germaris")

            PS: After a little reflexion, I think I can get rid of the letter r so I'll delete it...
            • 3. Re: Numbers as Variables Names ???
              Level 7
              np

              --

              Dan Mode
              --> Adobe Community Expert
              *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
              *THE online Radio* http://www.tornadostream.com
              *Must Read* http://www.smithmediafusion.com/blog


              "NewGerry" <webforumsuser@macromedia.com> wrote in message
              news:eiqm6u$2nc$1@forums.macromedia.com...
              > Oh yeah !!!
              > My intuitive approach was good as I put a letter r (as a convention) in
              > front
              > of the number (the name of the variable).
              > I wrote:
              > myVar.rserverVariable
              >
              > But, silly of me, I forgot the [ ] !!!!
              >
              > So I write now:
              > myVar.r[serverVariable]
              >
              > I'll give it a try this evening and tell you tomorrow if it works...
              >
              > Many thanks for your help.
              > Best regards.
              >
              > Gerard
              >