Can't set the size of the Loader?
Problem: var loader:Loader = new Loader(); loader.loadBytes(byteArr); return loader; After that, trace(loader.width,loader.height) gives (0,0), and as soon as you change the width and height via lo...
Problem: var loader:Loader = new Loader(); loader.loadBytes(byteArr); return loader; After that, trace(loader.width,loader.height) gives (0,0), and as soon as you change the width and height via lo...
Yesterday I ran into a memory leak. After digging all the way down, I found it was caused by the bitmap captured for the reflection in an external .swf that had been loaded not being cleared. My guess is that although loader.unloadAndStop() closes the stream, it doesn’t release the BitmapData created inside the loaded program. Keep this in mind: aside from purely media-playback objects, if the external program you load has listeners, callbacks, or has created BitmapData, then that external program needs to clean up after itself before it’s unloaded. Otherwise, no matter how much you gc, it’ll still be eating memory.
The first note on security sandboxes. Security sandboxes have tripped up plenty of people, so this is well-trodden ground. This afternoon I ran into error 2123. The scene of the crimeA certain list flash page needed to support gravatar avatars (gravatar’s cross-domain policy file lives at http://www.gravatar.com/avatar/crossdomain.xml). While loading the avatars they serve up, I hit a security sandbox violation, with this error: SecurityError: Error #2123: Security sandbox violation: