SharedObject.getSize( ) Method | Flash 6 |
returns the size of the SharedObject, in bytes |
The integer size of theSharedObj, in bytes.
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.