jenachdem wie gross die datei ist die du speicherst kannst du auch in flash die möglichkeit nutzen eine bild datei "
reinzuladen".
habe mir mal ein eigenes script samt preloader-balken und % angabe für sowas geschrieben, da 1. der flash film nicht aufquillt und 2. die bilder ihre gewohnte quali beibehalten.
auch wenn es nicht für dein vorhaben sinnvoll ist, ist es generell für bilder in filmen zu empfehlen!
Code:
MovieClip.prototype.ladebild = function(datei, x, y, skal, alpha, multb, warten, tiefe) {
img = this.createEmptyMovieClip("bild", tiefe);
checker = this.createEmptyMovieClip("kon", tiefe+1);
img.loadMovie(datei);
checker.onEnterFrame = function() {
img._visible = false;
fin = int(img.getBytesLoaded()*100/img.getBytesTotal());
createTextField("prozent", tiefe+2, 100, 0, 100, 100);
prozent.autoSize = true;
prozent.text = fin+" %";
balken.removeMovieClip();
balken = createEmptyMovieClip("balken", tiefe+3);
var faktor = prozent._width/100;
with (balken) {
_x = 100;
_y = 20;
lineStyle(2, 0x424242, 100);
moveTo(0, 0);
lineTo(fin*faktor*multb, 0);
}
if (fin>=100) {
if (count>warten) {
with (img) {
_visible = true;
_x = (!x) ? 0 : x;
_y = (!y) ? 0 : y;
_xscale = _yscale=(!skal) ? 100 : skal;
_alpha = (!alpha) ? 100 : alpha;
}
prozent.removeTextField();
balken.removeMovieClip();
checker.removeMovieClip();
delete count;
}
count++;
}
};
};
halter = _root.dein MC.createEmptyMovieClip("bildhalter", 1);
bildhalter.ladebild("deinbild.jpg", -140, -140, 100, 100, 2, 5, 1); geht aber nur mit progressiven *.jpg bildern
