Image validation
August 14th, 2003
I recently stumbled across a “feature” of the getBytesLoaded() function. If you load a jpeg or swf into a movieclip and the URL is bad, the output window will display an error. However, the user viewing the swf outside of Flash (in the browser) does not see the error report. The movie will continue, but the getBytesLoaded() call on that movieclip will return -1. This is useful I think if you are loading images dynamically and want some sort of error handling mechanism in the case that a bad URL was used.
Categories: Uncategorized
