ActionScript for Flash MX: The Definitive Guide, 2nd Edition By Colin Moock
Chapter 18. ActionScript Language Reference
SharedObject.getSize( ) Method
Flash 6
returns the size of the SharedObject, in bytes
theSharedObj.getSize()
Returns
The integer size of theSharedObj, in bytes.
Description
The getSize( ) method returns the total byte size of all the properties of theSharedObj.data. When requesting an increase in the local storage setting for a domain, the getSize( ) method can be used to tell the user exactly how much space is required by a movie (see the Example for SharedObject.flush( )). To convert bytes to kilobytes (KB), divide by 1024:
soKB = Math.floor(theSharedObj.getSize() / 1024);
The more properties theSharedObj.data has, the longer getSize( ) takes to execute.