Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible memory leak when loading a SWF #12

Open
ghost opened this issue Mar 8, 2016 · 2 comments
Open

possible memory leak when loading a SWF #12

ghost opened this issue Mar 8, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2016

/** @private **/ protected function _stopMovieClips(obj:DisplayObject):void { var mc:MovieClip = obj as MovieClip; if (mc == null) { return; } mc.stop(); var i:int = mc.numChildren; while (--i > -1) { _stopMovieClips(mc.getChildAt(i)); } }
does not work when the main class inherits from Sprite, or contains Sprite

@ghost ghost changed the title memory leak when loading swf possible memory leak when loading a SWF Mar 8, 2016
@jackdoyle
Copy link
Member

That piece of code is only meant to apply to MovieClips anyway - it just aims to stop() the playhead, that's all. Flash had some memory leak problems when MovieClips weren't stopped (which has nothing to do with LoaderMax). Why do you say that it's a "possible memory leak" in LoaderMax?

@ghost
Copy link
Author

ghost commented Mar 9, 2016

I'm sorry, now I saw a method unloadAndStop.
but prior to version 10, if we load the SWF where the base class inherits the Sprite, and a few frames, and then when you call unload animation not stops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant