4 Replies Latest reply on May 11, 2007 1:53 PM by stwingy

    AS3: No variables in testing environment

    Rothrock Level 5
      So one of the ways I work is to publish my swf into the testing environment. If things are quite what I expect I often go to the Debug menu and select "List Variables." Then I can see the status of all my variables and often realize what is going on.

      Try this with AS3.

      Make a new AS3 FLA.
      On the first frame put this.
      var myVal:Number=10;
      Publish and then List Variables.

      Do you get anything other than:

      Level #0:
      Variable _level0.$version = "MAC 9,0,45,0"

      That is all I ever see. Not so useful.

      Was this just a bad habit to develop? Or is this something missing from AS3?
        • 1. Re: No variables in testing environment
          Level 7
          I am sorry but List Variables is not supported for ActionScript 3.

          The Flash player has no way of identifying whether the movie being tested is
          ActionScript 1 and 2 where it is supported or ActionScript 3 where it is
          not, so the feature still remains accessible for both even though it will
          only work for ActionScript 1 and 2.

          "Rothrock" <webforumsuser@macromedia.com> wrote in message
          news:f221t4$rlv$1@forums.macromedia.com...
          > So one of the ways I work is to publish my swf into the testing
          > environment. If
          > things are quite what I expect I often go to the Debug menu and select
          > "List
          > Variables." Then I can see the status of all my variables and often
          > realize
          > what is going on.
          >
          > Try this with AS3.
          >
          > Make a new AS3 FLA.
          > On the first frame put this.
          > var myVal:Number=10;
          > Publish and then List Variables.
          >
          > Do you get anything other than:
          >
          > Level #0:
          > Variable _level0.$version = "MAC 9,0,45,0"
          >
          > That is all I ever see. Not so useful.
          >
          > Was this just a bad habit to develop? Or is this something missing from
          > AS3?
          >


          • 2. Re: AS3: No variables in testing environment
            Rothrock Level 5
            So is there any replacement way of seeing variables when testing a AS3 published file? It seems like a big gap for those of us trying to develop in AS3.
            • 3. Re: AS3: No variables in testing environment
              Level 7
              You would debug the movie using Debug > Debug Movie
              then for each breakpoint in your code, the Variables panel can be used to
              see variables and values

              Its a slightly different workflow, so it may take a while to get used to,
              but it gives you pretty much the same information (along with the ability to
              edit variables during runtime which is fun)

              "Rothrock" <webforumsuser@macromedia.com> wrote in message
              news:f2270k$4to$1@forums.macromedia.com...
              > So is there any replacement way of seeing variables when testing a AS3
              > published file? It seems like a big gap for those of us trying to develop
              > in AS3.


              • 4. Re: AS3: No variables in testing environment
                stwingy Level 1
                you can also get info using describeType, quick example