# Some graphics not loading, even with preloader

**URL:** <https://forum.kirupa.com/t/some-graphics-not-loading-even-with-preloader/199741>\
**Category:** Uncategorized\
**Created:** [September 5, 2006, 4:43pm UTC](https://forum.kirupa.com/t/some-graphics-not-loading-even-with-preloader/199741 "2006-09-05T16:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparky\_J](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Sparky\_J](https://forum.kirupa.com/u/Sparky_J)\
**Post date:** [September 5, 2006, 4:43pm UTC](https://forum.kirupa.com/t/some-graphics-not-loading-even-with-preloader/199741/1 "2006-09-05T16:43:18Z")

</div>

Hello,  
I’ve got a swf that i’m using from several location throughout a course Web site. Lesson 1 embeds the same swf as Lesson 2. In each lesson I pass a variable to the SWF to tell it which lesson data it needs to access. See below. The exercise\_var=0 tells the swf to load the data from the childnode that is 0. Lesson 2 would have an exercise\_var=1, etc…

…  
var fo = new FlashObject("…/6568-00.swf? **exercise\_var=0**", “animationName”, “450”, “500”, “8”, “#FFFFFF”);  
…

The following code is in the SWF and loads the XML info:

function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
\_global.conflict\_var = xmlNode.childNodes[**exercise\_var**].childNodes[0].firstChild.nodeValue;  
\_global.verdict\_var = xmlNode.childNodes[**exercise\_var**].childNodes[1].firstChild.nodeValue;  
\_global.answer\_var = xmlNode.childNodes[**exercise\_var**].childNodes[2].firstChild.nodeValue;  
gotoAndStop(“main”);  
} else {  
content = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load("…/hs-6568.xml");

This all seems to work and I also added a preloader but sporadically I’m finding that not all the graphics in my SWF are loading and I have to hit refresh to reload the movie. Any ideas why some of my stage items are not loading on random pages? I grouped the graphics on the stage and made them a grahpic movie clip hoping this would force them to load. But it hasn’t worked.
