Data throughput with ExternalInterface

July 16, 2009

I’ve started tinkering with Flash and AS3, and I’ve used the ExternalInterface a lot. For one project the amount of data to be pushed into JavaScript from AS3 was highly variable, could be huge.

I couldn’t find a good reference for how much it can handle, so I threw this together. In the end I made it to ~10Mb through at a time in both Firefox and Chrome. No IE testing :-)

The basic idea was to keep requesting large chunks until it broke, then go back and slowly work my way up to the max.

The JavaScript:

The ActionScript:

You can run it yourself here. Or download it here.

Leave A Comment

Your email will not be published.