Tell Loader object to stop loading?

how do I know if a Loader is loading something, and if it is, cancel/unload what it is doing and go back to it’s initial state…

call close() and put it in try {} catch (error:Error) {} if error is catched loaded wasn’t loading if not, loader was loading and it was stopped