Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

21 views
Skip to first unread message

Timothee Groleau

unread,
Sep 27, 2006, 2:37:40 AM9/27/06
to
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.

Timothee Groleau

unread,
Oct 9, 2006, 11:37:56 PM10/9/06
to
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.

0 new messages