Rene
%Europe/Berlin %520 %2005, 12:30
Ik heb een fotoalbum in flash 5 gevonden wat ik hier en daar heb aangepast.
Nu wil ik dit fotoalbum gebruiken in een flash 8 movie.
Helaas doet hij niet wat ik wil, de bedoeling is dat hij zodra hij meer als 21 foto's heeft dat er een volgende button wordt weergegeven, dit doet hij dus wel, maar klik ik nu op volgende dan is de bedoeling dat hij die 21 vedubbelt naar 42 en dit doet hij dus niet.
Dit is de aktie vanuit de movie:
buttons.aantal = aantal;
if (aantal<21) {
buttons.gotoAndStop(aantal);
} else {
buttons.gotoAndStop(21);
}
if (aantal<22) {
buttons.volgendebutton._visible = "0";
}
buttons.vorigebutton._visible = "0";
tumbnail = 21;
do {
unloadMovie((tumbnail));
tumbnail--;
} while (tumbnail>0);
do {
loadMovie(soort + "/" + aantal + "s.jpg", (aantal));
aantal--;
} while (aantal>0);
Op de volgende button staat deze aktie:
on (release) {
stap = stap+21;
aantalbackup = aantal;
if (aantal>(stap+21)) {
aantal = (stap+21);
gotoAndStop(21);
} else if ((aantal-stap)<21) {
gotoAndStop(aantal-stap);
} else {
gotoAndStop(21);
}
if (stap > 20) {
vorigebutton._visible = "1";
} else {
vorigebutton._visible = "0";
}
if ((aantal-stap)<21){
volgendebutton._visible = "0";
} else {
volgendebutton._visible = "1";
}
tumbnail = 21;
do {
unloadMovie(("_parent." + (tumbnail)));
tumbnail--;
} while (tumbnail>0);
do {
loadMovie(_parent.soort + "/" + aantal + "s.jpg", ("_parent." + (aantal-stap)));
aantal--;
} while (aantal>stap);
aantal = aantalbackup;
}
Waarom werkt het optellen "verdubbelen" niet in flash 8 ?
Bvd.
M.vr.gr. Rene.
Nu wil ik dit fotoalbum gebruiken in een flash 8 movie.
Helaas doet hij niet wat ik wil, de bedoeling is dat hij zodra hij meer als 21 foto's heeft dat er een volgende button wordt weergegeven, dit doet hij dus wel, maar klik ik nu op volgende dan is de bedoeling dat hij die 21 vedubbelt naar 42 en dit doet hij dus niet.
Dit is de aktie vanuit de movie:
buttons.aantal = aantal;
if (aantal<21) {
buttons.gotoAndStop(aantal);
} else {
buttons.gotoAndStop(21);
}
if (aantal<22) {
buttons.volgendebutton._visible = "0";
}
buttons.vorigebutton._visible = "0";
tumbnail = 21;
do {
unloadMovie((tumbnail));
tumbnail--;
} while (tumbnail>0);
do {
loadMovie(soort + "/" + aantal + "s.jpg", (aantal));
aantal--;
} while (aantal>0);
Op de volgende button staat deze aktie:
on (release) {
stap = stap+21;
aantalbackup = aantal;
if (aantal>(stap+21)) {
aantal = (stap+21);
gotoAndStop(21);
} else if ((aantal-stap)<21) {
gotoAndStop(aantal-stap);
} else {
gotoAndStop(21);
}
if (stap > 20) {
vorigebutton._visible = "1";
} else {
vorigebutton._visible = "0";
}
if ((aantal-stap)<21){
volgendebutton._visible = "0";
} else {
volgendebutton._visible = "1";
}
tumbnail = 21;
do {
unloadMovie(("_parent." + (tumbnail)));
tumbnail--;
} while (tumbnail>0);
do {
loadMovie(_parent.soort + "/" + aantal + "s.jpg", ("_parent." + (aantal-stap)));
aantal--;
} while (aantal>stap);
aantal = aantalbackup;
}
Waarom werkt het optellen "verdubbelen" niet in flash 8 ?
Bvd.
M.vr.gr. Rene.