I'm having issue while loading thumbnail, I set an interval of time for each thumb to load on stage. Some of them can't load sequential in order, they are missing, are lagging...
Actually, I set a preloader to the file size but since I load dynamically from XML, file size is smaller.
Does anyone know a solution to solve that issue? It's really bug me though...
I load with XML file and don't have any issue with parsing process.
Sometimes all thumbnails can be loaded on Stage, if bandwidth a bit slow it's lagged mean first thumb is loading then it's suddenly skip the second thumbnail, it loads third thumbnail instead and so on...
Sometimes it can load the whole thumbnails... it's weird
Here, I set a timer to load each thumbnail
protected static const INTERVAL_TIME:uint = 1000;
initLoadTime = new Timer(INTERVAL_TIME);
initLoadTime.addEventListener(TimerEvent.TIMER, handleLoadedEachThumbnail, false, 0, true);
initLoadTime.start();
protected function handleLoadedEachThumbnail(event:TimerEvent):void
{
var container:MovieClip = new MovieClip();
if (currentIndex < tabPhoto.length) {
thumbnailPositionMC = positionEachThumbnail();
container.addChild(thumbnailPositionMC);
addChild(container);
currentIndex++;
}
if (currentIndex == tabPhoto.length) {
currentIndex = 0;
initLoadTime.removeEventListener(TimerEvent.TIMER, handleLoadedEachThumbnail);
initLoadTime.stop();
}
}