liam.smart
07-29-2008, 10:40 PM
Hi everyone,
Has anyone got experience loading in PNG's into empty movieclips?
For some reason, certain PNG's will load in no problem, but other dont. And its not the small filesize ones that are successfully loaded. It varies. If I load in Jpeg's its fine so I know the code is right, but here it is anyways (i have excluded the xml part as that isnt the issue:
//now lets create the movieclips for the images
if (strH)
{ _root.createEmptyMovieClip("ImageHolder"+[i],getNextHighestDepth());
this["ImageHolder"+[i]].loadMovie(strH);
this["ImageHolder"+[i]]._x = intB;
this["ImageHolder"+[i]]._y = intC;
this["ImageHolder"+[i]].width = intD;
this["ImageHolder"+[i]].height = intE;
}
I set the co-ords and width etc in the XML file.
So has anyone ever tried this out importing PNG's? I am exporting for Flash Player 8 and have also tried 9 but that didnt help.
Has anyone got experience loading in PNG's into empty movieclips?
For some reason, certain PNG's will load in no problem, but other dont. And its not the small filesize ones that are successfully loaded. It varies. If I load in Jpeg's its fine so I know the code is right, but here it is anyways (i have excluded the xml part as that isnt the issue:
//now lets create the movieclips for the images
if (strH)
{ _root.createEmptyMovieClip("ImageHolder"+[i],getNextHighestDepth());
this["ImageHolder"+[i]].loadMovie(strH);
this["ImageHolder"+[i]]._x = intB;
this["ImageHolder"+[i]]._y = intC;
this["ImageHolder"+[i]].width = intD;
this["ImageHolder"+[i]].height = intE;
}
I set the co-ords and width etc in the XML file.
So has anyone ever tried this out importing PNG's? I am exporting for Flash Player 8 and have also tried 9 but that didnt help.