| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Mar 2008
Beiträge: 24
| Fragen zu FlashStar Galerie
hab diese Galerie bei mir im Einsatz: http://www.flashstar.de/fla/mx/FSGrossExtBilderFin2.swf ich möchte jetzt, wenn die Seite mit der Galerie geladen wird - das die Vorschau Bilder langsam einfaden - ebenso möchte ich wenn man auf klick größeres Bild - dieses auch langsam einfadet. nur wie geht das? anbei der Action Script Code, hab ich schon ganz leicht abgeändert aber das schaff ich nicht: HTML-Code: stop ();
// Spalten und Reihen
pS = 2;
pR = 5;
// Limit
max = pS * pR;
// Zweidimensionales Array erzeugen
function setArray (pT)
{
spielLevel = new Array ();
for (var m = 0; m < pR; m++)
{
spielLevel[m] = [];
for (var n = 0; n < pS; n++)
{
spielLevel[m].push (alleBilder[pT++]);
}
}
tabelle (80, 260, 60, 60);
}
// Movieclips setzen
function tabelle (posX, posY, pB, pW)
{
for (i in this.mc_bild)
{
if (typeof (this.mc_bild[i]) == "movieclip")
{
this.mc_bild[i].removeMovieClip ();
}
}
tiefe = 0;
for (var i = 0; i < spielLevel[0].length; i++)
{
for (var j = 0; j < spielLevel.length; j++)
{
nName = "block_" + i + "_" + j;
this.mc_bild.attachMovie ("contclip", nName, tiefe++);
this.mc_bild[nName].nummer = i;
this.mc_bild[nName].bildname = "daten/" + spielLevel[j][i];
this.mc_bild[nName]._x = posX + pB * i * 1.2;
this.mc_bild[nName]._y = posY + pW * j * 1.2;
this.mc_bild[nName].onRelease = function ()
{
this._parent._parent.createEmptyMovieClip ("inhalt", 10000);
this._parent._parent.inhalt.attachMovie ("grosscontclip", "grossclip", 1);
this._parent._parent.inhalt.grossclip.bildname = this.bildname;
this._parent._parent.inhalt.grossclip._x = 230;
this._parent._parent.inhalt.grossclip._y = 234;
this._parent._parent.inhalt.grossclip.leiste_mc.onPress = function ()
{
this._parent.startDrag ();
};
this._parent._parent.inhalt.grossclip.leiste_mc.onRelease = this._parent._parent.inhalt.grossclip.leiste_mc.onReleaseOutside = function ()
{
this._parent.stopDrag ();
};
this._parent._parent.inhalt.grossclip.leiste_mc.onMouseMove = function ()
{
updateAfterEvent ();
};
};
}
}
}
// Schaltflächen
w_btn.onRelease = function ()
{
if (seite < alleBilder.length - max)
{
seite += max;
setArray (seite);
}
};
z_btn.onRelease = function ()
{
if (seite > 0)
{
seite -= max;
setArray (seite);
}
};
// Starten
loadVariables ("bilder.txt", this);
this.onData = function ()
{
alleBilder = new Array ();
alleBilder = bildnamen.split (",");
createEmptyMovieClip ("mc_bild", 1);
setArray (0);
}; |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |