What is the proper way to stop loading a Flex module before it is fully loaded?

I think I remember that Loader.unload () could be used once to stop swf loading before it finished loading. I can no longer find the documentation or the blog where I read this. Perhaps this was an unofficial function. Anyway, the IModuleInfo returned by ModuleManager.getModule () has an unload () method. If I want to stop loading the Flex module that is running, am I just calling iModuleInfo_instance.unload ()?

+3
source share
1 answer

Listen to the event progressin ModuleLoader( link ). Then unLoad.

+1

Source: https://habr.com/ru/post/1750570/


All Articles