4 Replies Latest reply on Feb 27, 2009 8:23 AM by nikos101

    debugging help

    nikos101 Level 2
      In the debug view I have this for a variable:

      this.parameters = Object (@15ad7e99)
      debug = "true"
      localIP = "10.4.1."


      However after I do this code in flash:

      var ip:String = "";
      ip= this.parameters.localIP;
      var debug:String = this.parameters.debug;

      the ip variable still points to null.

      Any ideas?
        • 1. Re: debugging help
          Level 7

          "nikos101" <webforumsuser@macromedia.com> wrote in message
          news:go8ng5$enh$1@forums.macromedia.com...
          > In the debug view I have this for a variable:
          >
          > this.parameters = Object (@15ad7e99)
          > debug = "true"
          > localIP = "10.4.1."
          >
          >
          > However after I do this code in flash:
          >
          > var ip:String = "";
          > ip= this.parameters.localIP;
          > var debug:String = this.parameters.debug;
          >
          > the ip variable still points to null.

          Is the flash movie embedded in Flex? How are you passing in the object?


          • 2. Re: debugging help
            nikos101 Level 2
            I'm passing these params via swf object:

            <script type="text/javascript">
            var flashvars = {};
            flashvars.localIP = "<cfoutput>#URL.localIP#</cfoutput>"
            var params = {};
            params.allowfullscreen = "true";
            params.wmode = "transparent";
            var attributes = {};
            attributes.id = "flexApp";


            swfobject.embedSWF("debug/Transfer.swf", "myAlternativeContent", "800", "750", "9.0.0", false, flashvars, params, attributes);
            </script>


            its just a swf builded from a flex project. I.m not embedding a flash movie
            • 3. Re: debugging help
              Level 7

              "nikos101" <webforumsuser@macromedia.com> wrote in message
              news:go8ng5$enh$1@forums.macromedia.com...
              > In the debug view I have this for a variable:
              >
              > this.parameters = Object (@15ad7e99)
              > debug = "true"
              > localIP = "10.4.1."
              >
              >
              > However after I do this code in flash:
              >
              > var ip:String = "";
              > ip= this.parameters.localIP;
              > var debug:String = this.parameters.debug;
              >
              > the ip variable still points to null.

              What happens if you do this

              var ip:String = "";
              ip= this.parameters.localIP;
              trace(this.parameters.localIP);
              var debug:String = this.parameters.debug;

              You may find that there's something additional going on in code you haven't
              shown that is affecting this.


              • 4. Re: debugging help
                nikos101 Level 2
                I found it, the debug url was linking directly to the swf file. Now it links to the cfm page and it works. Thanks Amy