1 Reply Latest reply on Oct 9, 2006 8:37 PM by Newsgroup_User

    filereference upload -> script is causing Flash to run slowly?

    Level 7
      Hi all,

      I'm having a problem with the Filereference upload mechanism. I get very
      often the error "a script is causing Flash to run slowly [...]".

      Usually this error occurs when a user script takes too much time (loops,
      parsing huge files, etc) but in our case, we are only monitoring the
      upload through the onProgress and onComplete events. There is no loop in
      our code and no heavy processing.

      I am thinking this must be some bug in the Flash player itself (both
      flash player 8 and 9 btw). We have increased the timeout limit with
      swssli, and that helped some, but we still encounter the problem regularly.

      I've seen this issue being reported several times before but I haven't
      seen or found any solution yet.

      Has anyone here encountered this problem before? Is there a definitive
      solution or work around for it?

      Any help would be much appreciated.

      Thanks!
      Tim.
        • 1. Re: filereference upload -> script is causing Flash to run slowly?
          Level 7
          Replying to myself:

          Apparently the Flash player doesn't reset the script timeout counter
          properly if no user scripts (except for the onProgress events) runs
          during upload.

          We implemented a onEnterFrame function on a dummy movieclip to execute
          dummy code (increase a counter). The onEnterFrame event occurs more
          often than the onProgress event so that seems to solve the problem for us.

          Tim.


          Timothee Groleau wrote:
          > Hi all,
          >
          > I'm having a problem with the Filereference upload mechanism. I get very
          > often the error "a script is causing Flash to run slowly [...]".
          >
          > Usually this error occurs when a user script takes too much time (loops,
          > parsing huge files, etc) but in our case, we are only monitoring the
          > upload through the onProgress and onComplete events. There is no loop in
          > our code and no heavy processing.
          >
          > I am thinking this must be some bug in the Flash player itself (both
          > flash player 8 and 9 btw). We have increased the timeout limit with
          > swssli, and that helped some, but we still encounter the problem regularly.
          >
          > I've seen this issue being reported several times before but I haven't
          > seen or found any solution yet.
          >
          > Has anyone here encountered this problem before? Is there a definitive
          > solution or work around for it?
          >
          > Any help would be much appreciated.
          >
          > Thanks!
          > Tim.