# Load images only while nothing else need to be loaded?

**URL:** https://forum.kirupa.com/t/load-images-only-while-nothing-else-need-to-be-loaded/302794
**Category:** flash
**Created:** [January 7, 2010, 5:10pm UTC](https://forum.kirupa.com/t/load-images-only-while-nothing-else-need-to-be-loaded/302794 "2010-01-07T17:10:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![toffe](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@toffe](https://forum.kirupa.com/u/toffe)
#### Post date: [January 7, 2010, 5:10pm UTC](https://forum.kirupa.com/t/load-images-only-while-nothing-else-need-to-be-loaded/302794/1 "2010-01-07T17:10:34Z")

</div>

I want to load a bunch of images only when nothing else need to be loaded. So basically I have to check if something is currently loading or not. If something is currently loading I have to stop the image loading. Once again when nothing is loading I want to continue to load images again.

How do I check if something is currently loading? I could use a boolean variable called “loading” or something, but is there a better approach?
