Can't fetch my images...

ikonen.olavi79

New Member
Messages
23
Reaction score
0
Points
0
I'm trying read my images from folder named pics but i found that the mime type is text/x-generic when it should be something like image/jpeg, why is that? is there some particular naming convention in folders? I'm little frustrated...below is the preloading script if someone is interested. It doesn't check anything, just loads...

After loading when checked height && width - they both are 0. This is the skeleton of preload, i've tried timed and looped reading but the result is always the same - no proper object read...

///////////////////////////////
// preload images to memory
///////////////////////////////
function preloadimages(category)
{
if(isImagLoad)
{
return;
}

// preload category images
for(i = 0; i < items.length; i++)
{
if(items._category == category)
{
itemImages =Image();
itemImages.src = items._image1;
++itemCount;
}
}
itemCategory = category;

isImageLoad = true;

init();
}
 
Last edited:

DeadBattery

Community Support Team
Community Support
Messages
4,018
Reaction score
120
Points
0
I am moving this thread to Programming Help where someone may be able to assist you.
*****Thread Moved to Programming Help*****
 
Top