シンプルなプリローダーを構築しようとしています。ステージ上に 4 つのムービークリップがあり、それぞれに xml ファイルから取得した画像を追加しています
theMap = new XML();
theMap.ignoreWhite = true;
theMap.onLoad = function(success){
if (success) {
theNodes = theMap.firstChild.childNodes;
for (i=0;i < theNodes.length;i++) {
theSrc = theNodes[i].attributes.src; //the jpg
theClip = theNodes[i].attributes.clip; //the movieclip
_root[theClip].loadMovie(theSrc); // adding the jpg to the movieclip
}
}
else {
trace('Cannot Load XML file.');
}
}
theMap.load("map.xml");
すべて問題なく動作しますが、jpg は少し重いので、プリロードしたいと思います。それは可能ですか?