2 Replies Latest reply on Dec 20, 2007 7:55 AM by cubelan2

    Error when playing my movie on a HTML file

    cubelan2 Level 1
      I have a very strange problem.
      When I test my movie inside Director, it works perfectly, but when I export it and test in a browser, then if gives an error.

      In particular, this is line which gives error only in the browser:
      if (netDone(grupos[cs]) = TRUE) and (netError(grupos[cs]) = "OK") then
      However, with this line it does work:
      if (netDone(grupos) = TRUE) and (netError(grupos) = "OK") then

      when gruops[cs] is a list, it fails, otherwise it works. How can it be? What is the problem?

      Thank you.
        • 1. Re: Error when playing my movie on a HTML file
          Level 7

          "cubelan2" <webforumsuser@macromedia.com> wrote in message
          news:fj56cm$ohf$1@forums.macromedia.com...
          >I have a very strange problem.
          > When I test my movie inside Director, it works perfectly, but when I
          > export it
          > and test in a browser, then if gives an error.
          >
          > In particular, this is line which gives error only in the browser:
          > if (netDone(grupos[cs]) = TRUE) and (netError(grupos[cs]) = "OK")
          > then
          >

          > However, with this line it does work:
          > if (netDone(grupos) = TRUE) and (netError(grupos) = "OK") then
          >

          >
          > when gruops[cs] is a list, it fails, otherwise it works. How can it be?
          > What
          > is the problem?
          >
          > Thank you.

          What exactly is the error message?
          Are you sure cs is defined, and exists in the list?
          Is the value of cs what you think it is?

          Richard.


          • 2. Re: Error when playing my movie on a HTML file
            cubelan2 Level 1
            Sorry for my delay in my answer Richard.

            Yes, I'm sure cs is defined. Everything was ok.
            For some reason, this line gave problems if I employed a List (Array) instead of a scalar/single value.

            It's very strange.

            I bypassed the problem using an auxiliar var instead of the array with the same value of the array.