I couldnÂ’t sleep for some reason Sunday night so I decided to look through the File Format Specifications that Macromedia published recently. To my surprise there are a few things in there that I found interesting.
The cool chapter to check out is the Â“WhatÂ’s New in Macromedia Flash (SWF) File Format 7Â”. In this chapter, there is mention of Â“ScriptLimitsÂ” which is a tag that sets the Maximum recursion depth and the script timeout seconds of a swf. Usually the MaxRecursionDepth is set to 256 as anyone whoÂ’s had the player loop a few too many times, and the ScriptTimeoutSeconds is responsible for that dialogue that pops up after 15 seconds.
It turns out that in the new player you have the ability to control those settings, wherein before you had to always make sure your movie behaved within those restrictions. I donÂ’t recommend people modify these settings, but if it is ever needed itÂ’s good to know it is there. Also there is mention of the default value of ScriptTimeoutSettings which apparently varies by platform (between 15 to 20 seconds). IÂ’m not sure if this is for Mac/Windows or actually for low-performance devices like pdaÂ’s but I didnÂ’t know about this variation before.
There are some other interesting things in there. If you have never looked at the file format specs, I definitely recommend it if you canÂ’t sleep and feel like getting deep into the byte code of your precious swfÂ’s.