Hallo,
ich habe eine Image-Rotation und möchte diese nur leicht schräg (starr, leichte Aufsicht)) auf der x-Achse - rechts und links rotieren und nicht auch noch oben und unten und heranzoomen (so wie es jetzt ist)! Über jede Hilfe wäre ich sehr dankbar.
PHP-Code:
links = new Array();
links[0] = "01";
links[1] = "02";
links[2] = "03";
links[3] = "04";
links[4] = "05";
links[5] = "06";
links[6] = "07";
links[7] = "08";
links[8] = "09";
links[9] = "10";
links[10] = "11";
links[11] = "12";
links[12] = "13";
links[13] = "14";
links[14] = "15";
links[15] = "16";
bilder = new Array();
bilder[0] = "bilder/01.jpg";
bilder[1] = "bilder/02.jpg";
bilder[2] = "bilder/03.jpg";
bilder[3] = "bilder/04.jpg";
bilder[4] = "bilder/05.jpg";
bilder[5] = "bilder/06.jpg";
bilder[6] = "bilder/07.jpg";
bilder[7] = "bilder/08.jpg";
bilder[8] = "bilder/09.jpg";
bilder[9] = "bilder/10.jpg";
bilder[10] = "bilder/11.jpg";
bilder[11] = "bilder/12.jpg";
bilder[12] = "bilder/13.jpg";
bilder[13] = "bilder/14.jpg";
bilder[14] = "bilder/15.jpg";
bilder[15] = "bilder/16.jpg";
maxAnzahl = links.length;
radiusx = 100;
radiusy = 20;
radiusz = 50;
zentrumx = 200;
zentrumy = 200;
zentrumz = 80;
farbskala = 25;
farbbereich = 80;
menu0.nummer = 1;
menu0.maxAnzahl = maxAnzahl;
tiefe = maxAnzahl*50+1000;
MovieClip.prototype.menu_update = function() {
x = x+_parent.xTempo;
s = Math.sin(x);
c = Math.cos(x);
n = n+_parent.yTempo;
j = Math.sin(n);
m = Math.cos(n);
_x = c*_parent.radiusx+_parent.zentrumx;
_y = m*s*_parent.radiusy+_parent.zentrumy;
scale = j*s*_parent.radiusz+_parent.zentrumz;
_xscale = _yscale = scale;
farbwert = s*j*_parent.farbskala+_parent.farbbereich;
menuFarbe.setTransform({ra:farbwert, ga:farbwert, ba:farbwert});
this.swapDepths(int((j*s+1)*100)+_parent.tiefe);
};
MovieClip.prototype.menu_load = function(objNummer, gesamt) {
x = (2*Math.PI)*(objNummer/gesamt);
menuFarbe = new Color(this);
};
MovieClip.prototype.tracer = function(zentrumx, zentrumy, aTempo, faktor) {
_parent.xTempo = (_x-zentrumx)/aTempo;
_parent.yTempo = (_y-zentrumy)/aTempo;
_x = _x+(_parent._xmouse-_x)/faktor;
_y = _y+(_parent._ymouse-_y)/faktor;
};
Movieclip.prototype.create = function(maxAnzahl) {
for (var i=0; i<(maxAnzahl); i++) {
duplicateMovieClip("menu", "menu"+i, i);
this["menu"+i].nummer = i;
this["menu"+i].maxAnzahl = maxAnzahl;
this["menu"+i].container_mc.loadMovie(bilder[i]);
}
for (var l=0;l<=maxAnzahl;l++) {
this["menu"+l].nr = links[l];
this["menu"+l].bild = links[l];
}
oldmaxAnzahl = maxAnzahl;
};
menu._visible = 0;
create(maxAnzahl);
stop();
Anbei habe ich noch das swf-File drangehangen (fla war zu groß).