swf link mit verschiedenen bildern

P

Pentrarer

Hallo,

also meine frage es sieht so aus das ich jeden angezeigten link mit nem unterschiedlichen bild angezeigt wird habe im moment nur ein bild was auf alle links angewendet wird und würde dies gerne ändern hoffe jemand kann mir helfen.

Code:
fscommand("allowscale", "false");
links = new Array();
links[1] = ["http://www.holeab.de/holeab/jgs_portal.php", "P"];
links[2] = ["http://www.holeab.de/holeab/index.php", "B"];
links[3] = ["http://www.holeab.de/holeab/jgs_chat.php", "C"];
links[4] = ["http://www.holeab.de", "E"];
links[5] = ["http://www.holeab.de/party/index.html", "P"];
links[6] = ["http://www.holeab.de/holeab/jgs_portal_statistik.php", "S"];
posX = Stage.width / 2;
posY = Stage.height / 2;
anzahl = links.length - 1;
var i = 1;
while (i < anzahl + 1)
{
    attachMovie("clip", "clip" + i, i);
    i++;
} // end while
_global.signal = true;
this.onEnterFrame = function ()
{
    if (signal)
    {
        mausPos = mausPos + (_root._xmouse - posX) / 200;
        var i = 1;
        while (i < anzahl + 1)
        {
            winkel = (mausPos + 360 / anzahl * i) * 3.141593 / 180;
            this["clip" + i]._x = posX + Math.sin(-winkel) * 300;
            this["clip" + i]._y = posY + Math.cos(-winkel) * 50;
            this["clip" + i]._xscale = 100 + Math.cos(winkel) * 50;
            this["clip" + i]._yscale = 100 + Math.cos(winkel) * 50;
            this["clip" + i].swapDepths(1000 + Math.cos(winkel) * 100);
            this["clip" + i].txtName = links[i][1].toUpperCase();
            this["clip" + i].url = links[i][0];
            this["clip" + i].onRelease = function ()
            {
                getURL(this.url, "_self");
                signal = false;
            };
            this["clip" + i].onRollOver = function ()
            {
                signal = false;
            };
            this["clip" + i].onRollOut = function ()
            {
                signal = true;
            };
            i++;
        } // end while
    } // end if
};
planet.swapDepths(1000);


Mfg Pentrarer
 
Hi,

Bitte achte auf korekkte Groß- und Kleinschreibung sowie Zeichensetzung! Siehe dazu auch unsere Netiquette, insbesondere Punkt 12.
Deine Frage ist erst nach mehrmaligem Durchlesen verständlich!

Wenn Du jedes Symbol als eigene Grafik (MovieClip) anzeigen willst, mach doch einfach:
PHP:
attachMovie("clip" + i, "clip" + i, i);
und erstelle in der Bibliothek 6 MovieClips mit den Bezeichnern "clip1", "clip2" ... "clip6". ;)

Gruß

P.S.: Um das Script auch unter Flash 7 zum Laufen zu bekommen, solltest Du die Variable "mausPos" zunächst mit 0 initialisieren.
.
 
Zurück