Ich bau an einer art Dynamischen Gallery, leider ladet der mir die Pics ungeordnet, was nicht sehr schneidig aussieht..
Möchte dass er bei mir, wie bei
http://www.imagevuex.com/imagevue
die einzelnen Thumbs hintereinander ladet.. Könnt ihr mir da helfen..
Ist es möglich da was an meinem Script zu ergänzen, oder müsste ich da einen ganz anderen Weg gehen?
Wär net, wenn jemand einen ähnlichen thread kennt, wo man sich damit schon beschäftigt hat, ich konnte leider nix finden..
FLA: (AS der fla bitte mit dem von unten ersetzen, da fla nicht mehr aktuell ist)
AS: (Dürfte schon in einem anderen Thread von mir bekannt sein)
PHP-Code:
fscommand("allowScale", false);
url = "test.xml";
EX = new XML();
EX.ignoreWhite = true;
EX.load(this.url);
EX.onLoad = function(ready) {
if (ready) {
tn = EX.firstChild.childNodes;
delete EX;
movmc();
movmv1();
movmv();
movbt(-15*-1, 305-35, 180)
}
};
function btnu(aa,ma){
this[numbers].onRelease = function(){
aktAnzeige = aa;
maxAnzeige = ma;
movmv();
}
}
function movmv1() {
j = 0;
for (i=maxNr2-aktNr; i<maxNr; i++) {
numbersn = "number"+i;
this[numbersn]._visible=false
}
for (i=aktNr; i<maxNr and i<maxNr2; i++) {
numbers = "number"+j;
attachMovie("number", numbers, 2*j);
if (tn[i] != undefined) {
this[numbers]._y = 292;
this[numbers]._x = 5+this[numbers]._height*j*1;
this[numbers].numbertxt.text = i+1
if(anzahl < 16){
this[numbers]._visible = false
}
btnu(i*15,i*15+15)
this[numbers].useHandCursor = false;
} else {
this[numbers].removeMovieClip();
}
if((i+1) == maxNr2){
this[numbersn]._visible=false
}
j++;
}
}
function movmv() {
j = 0;
for (i=aktAnzeige; i<maxAnzeige; i++) {
link = "links"+j;
attachMovie("links", link, 2*j+1);
if (tn[i] != undefined) {
link.duplicateMovieClip(link, i);
this[link]._x = 10+(j%5)*140;
this[link]._y = 20+Math.floor(j/5)*76;
trace(this[link]._y);
this[link].txtnr.text = i+1;
this[link].bild = tn[this[link].txtnr.text-1].firstChild.attributes.bild;
} else {
this[link].removeMovieClip();
}
j++;
}
}
function movmc() {
anzahl = tn.length;
max = 5;
maxAnzeige = 15;
maxNr = 33;
maxNr2 = Math.ceil((anzahl/15)+0,5)
aktAnzeige = 0;
aktNr = 0;
}
function btz(){
this[bt3].onRelease = function() {
if (aktAnzeige>1) {
j = 0;
aktAnzeige -= 15;
maxAnzeige -= 15;
movmv();
}
};
this[bt4].onRelease = function() {
if (aktAnzeige<anzahl-15) {
j = 0;
aktAnzeige += 15;
maxAnzeige += 15;
movmv();
}
};
this[bt2].onRelease = function() {
if (aktNr<maxNr2-33) {
j = 0;
aktNr += 33;
maxNr += 33;
movmv1();
}
};
this[bt1].onRelease = function() {
if (aktNr>1) {
j = 0;
aktNr -= 33;
maxNr -= 33;
movmv1();
}
};
}
function movbt(x, y, rot) {
l=0
for(q=0;q<4;q++){
bt = "button"+q
bt1 = "button"+0
bt2 = "button"+1
bt3 = "button"+2
bt4 = "button"+3
attachMovie("button", bt, 2*-q-1);
if (tn[q] != undefined) {
this[bt].useHandCursor = false;
this[bt1]._rotation = rot;
this[bt3]._rotation = rot;
bt.duplicateMovieClip(bt, q);
this[bt]._x = x+(l%2)*5;
this[bt]._y = y+Math.floor(l/2)*15;
trace(this[bt]._y);
if(anzahl < 16){
this[bt]._visible = false
}
btz()
}else{
this[bt].removeMovieClip();
}
l++
}
}