Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 14-02-2009, 08:43   #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);
};
Ibu400 ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 12:33 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele