Danke schonmal fürs Interesse.
Du hast es nicht anders gewollt:
Hier wirdn Thumbnail geladen und zum button gemacht.
(Der gefragte Modus ist "works",medium"bilder").
ActionScript:
//füllt ein Quadrat mit einem neuen Bild.
MovieClip.prototype.neuerInhalt = function(inhalt, modus, medium, textinhalt) {
this.enabled = false;
this.audio_mc.removeMovieClip();
this.video_mc.removeMovieClip();
this.containerA.swapDepths(this.containerB);
(this.containerA.getDepth()>this.containerB.getDepth()) ? this.c=this.containerA : this.c=this.containerB;
this.c._alpha = 0;
this.onEnterFrame = function() {
if (this.c.getBytesLoaded()>=this.c.getBytesTotal() && this.c.getBytesLoaded()>200) {
this.c.timeTween("_alpha", 100, 1000, Math.easeInCubic);
this.enabled = true;
delete this.onEnterFrame;
}
};
if (modus == "clients" || modus == undefined) {
this.c.loadMovie("../bilder/thumbs/clients/"+inhalt+"1.jpg");
}
//Hier isser !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if (modus == "works") {
this.c.loadMovie("../bilder/thumbs/clients/"+inhalt+".jpg");
//Buttonfunktionen
this.onRollOver = function() {
this.rahmenFett();
};
this.onRollOut = function() {
this.rahmenNormal();
};
this.onRelease = function() {
_level30.scrollingOff();
textBack(textinhalt);
stopAllSounds();
_level30.genTextBox("clients_txt", 340, 330, 146, 290, 312, 13, "");
_level30.preloader_mc.removeMovieClip();
_level30.transportfeld_mc.removeMovieClip();
unloadMovie("_level50");
if (medium == "audio") {
_level30.createEmptyMovieClip("container", 335);
//Grosses Bild in den Container laden
loadMovie("../bilder/works/"+inhalt+".jpg", "_level30.container");
_level30.container._alpha = 0;
bildPre(true, inhalt);
}
if (medium == "video") {
_level30.container.removeMovieClip();
_level50.unloadMovie;
loadMovie("../video/"+inhalt+".swf", "_level50");
}
if (medium == "bilder") {
_level30.createEmptyMovieClip("container", 335);
unloadMovie("_level50");
loadMovie("../bilder/works/"+inhalt+".jpg", "_level30.container");
_level30.container._alpha = 0;
bildPre();
}
};
}
if (modus == "clients") {
this.onRollOver = function() {
trace("modus--clients");
this.rahmenFett();
with (this._parent) {
createEmptyMovieClip("markierung_mc", 250);
with (markierung_mc) {
_x = (this._parent[inhalt+"_mc"][inhalt+"_txt"]._x)-15;
_y = (this._parent[inhalt+"_mc"][inhalt+"_txt"]._y)+11;
dreieck(0xFF0000);
}
}
};
this.onRollOut = function() {
this.rahmenNormal();
this._parent.markierung_mc.removeMovieClip();
};
this.onRelease = function() {
this._parent.markierung_mc.removeMovieClip();
_level1.genText("inhalt_txt", 17, (_level1.rubrik_txt._x+_level1.rubrik_txt._width), 20, 14, eval(inhalt+"_obj.listenTitel"), "Helvetica 45 Light", "0xFFFFFF");
_level30.genTextBox("clients_txt", 340, 330, 146, 290, 312, 13, "<font color='#ff0000'>"+eval(inhalt+"_obj.textTitel")+"</font> <font color='#ffffff'>"+eval(inhalt+"_obj.fliesstext")+"</font>");
trace("hoehe: "+_level30.clients_txt.textHeight);
if (_level30.clients_txt.textHeight>312) {
_level30.scrollingOn("clients");
}
loadWorks(inhalt, eval(inhalt+"_obj.bilder"), eval(inhalt+"_obj.audio"), eval(inhalt+"_obj.video"));
this._parent.createEmptyMovieClip("container", 335);
for (i=0; i<=clients_array.length; i++) {
this._parent[clients_array[i]+"_mc"].removeMovieClip();
}
worksBackButtton();
};
}
};
Die Mehtode bildPre:
ActionScript:
MovieClip.prototype.bildPre = function(audio, audioziel) {
_level30.createEmptyMovieClip("preloader_mc", 360);
with (_level30.preloader_mc) {
//preloader positionieren
_x = 398;
_y = 290;
//rahmen zeichnen und positionieren
createEmptyMovieClip("rahmen_mc", 5);
with (rahmen_mc) {
lineStyle(1, "0x2B2B00");
moveTo(0, 10);
lineTo(160, 10);
lineTo(160, 0);
lineTo(0, 0);
lineTo(0, 10);
//ladebalken zeichnen und positionieren
createEmptyMovieClip("balken_mc", 10);
balken_mc.onEnterFrame = function() {
trace("skript.swf,1,249");
with (this) {
var gesamt = _level30.container.getBytesTotal();
var bereits = _level30.container.getBytesLoaded();
beginFill("0x2B2B00");
moveTo(2, 8);
lineTo(1.59*(bereits/(gesamt/100)), 8);
lineTo(1.59*(bereits/(gesamt/100)), 3);
lineTo(2, 3);
lineTo(2, 158);
endFill("0x2B2B00");
if (bereits>=gesamt && bereits>300) {
_level30.container._x = (479.5-(_level30.container._width/2));
_level30.container._y = (296-(_level30.container._height/2));
_level30.container.timeTween("_alpha", 100, 1000, Math.easeInCubic);
if (audio) {
audioPre(audioziel);
}
_level30.preloader_mc.removeMovieClip();
delete this.onEnterFrame;
}
}
};
}
}
};
Ich hatte das Skript zusammengestrichen, weil ich gehofft hatte,
der fehler wäre offensichtlich(für jeden ausser mir).
Ich kann dir auch komplette dateien schicken, ist nur ein ziemlicher schrank voll, weil die bilder und daten auch von textdateien ausgelesen werden und so.....
wenn dus dir trotzdem antun willst, sag bescheid. dann kriegste auch flas und txts.
Neugierig
fabian