| antec sx840 | P4 1.7 | intel 850 mv | 512Mb kingston ecc | matroxG550 | adaptec29160 | atlas 10K III 18Gb | seagate barracuda IV 40Gb | plextor 40x | Iiyama17" | w2k pro | lappie: Dell inspiron 8100 | 1,2G/512/15"/48Gb/dvdcdrw/GF2go32Mb/lan/5
zeg maar zoiets als while i < 11 duplicate movie. En dan wel binnen het loopje ook i weer verhogen anders gaat het mis
dit script dupliceert de movie en hoogt de naam op met 1, maar hoe pas ik het aan dat hij 10 x dupliceert en elke movie ophoogt met 1?
on (press) {
aantal = aantal+1;
duplicateMovieClip ("MC", "mc"+aantal, aantal);
eval("MC"+aantal)._y += (aantal*MC._height)+i10;
}
| antec sx840 | P4 1.7 | intel 850 mv | 512Mb kingston ecc | matroxG550 | adaptec29160 | atlas 10K III 18Gb | seagate barracuda IV 40Gb | plextor 40x | Iiyama17" | w2k pro | lappie: Dell inspiron 8100 | 1,2G/512/15"/48Gb/dvdcdrw/GF2go32Mb/lan/5
Verwijderd
Iets als dit: ???Op vrijdag 08 februari 2002 10:51 schreef niXnut het volgende:
dat moet toch ook anders kunnen, je hebt toch niet perse een loopje nodig?
dit script dupliceert de movie en hoogt de naam op met 1, maar hoe pas ik het aan dat hij 10 x dupliceert en elke movie ophoogt met 1?
on (press) {
aantal = aantal+1;
duplicateMovieClip ("MC", "mc"+aantal, aantal);
eval("MC"+aantal)._y += (aantal*MC._height)+i10;
}
on (press) {
while (aantal < 11) {
aantal = aantal+1;
duplicateMovieClip ("MC", "mc"+aantal, aantal);
eval("MC"+aantal)._y += (aantal*MC._height)+i10;
}
}
Verwijderd
is je andere probleem nog opgelost?
ja je moet die variabelen niet in de root aanroepen maar in de movieclip waar de button in staat.Op vrijdag 08 februari 2002 11:12 schreef mr10 het volgende:
het lukt niet zonder loopje - dan zou je 10 x op die knop moeten drukken nl. - een on press doet alles wat er tussen je {} staat 1 keer.
is je andere probleem nog opgelost?
Ik ben sinds kort een beetje met actionscript bezig en ik word er helemaal gek van, de oplossing van het ene probleem geeft steeds een nieuw probleem.
| antec sx840 | P4 1.7 | intel 850 mv | 512Mb kingston ecc | matroxG550 | adaptec29160 | atlas 10K III 18Gb | seagate barracuda IV 40Gb | plextor 40x | Iiyama17" | w2k pro | lappie: Dell inspiron 8100 | 1,2G/512/15"/48Gb/dvdcdrw/GF2go32Mb/lan/5
en onClipEvent(load)*10 kan dat wel?Op vrijdag 08 februari 2002 11:12 schreef mr10 het volgende:
het lukt niet zonder loopje - dan zou je 10 x op die knop moeten drukken nl. - een on press doet alles wat er tussen je {} staat 1 keer.
| antec sx840 | P4 1.7 | intel 850 mv | 512Mb kingston ecc | matroxG550 | adaptec29160 | atlas 10K III 18Gb | seagate barracuda IV 40Gb | plextor 40x | Iiyama17" | w2k pro | lappie: Dell inspiron 8100 | 1,2G/512/15"/48Gb/dvdcdrw/GF2go32Mb/lan/5
Verwijderd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| on (press) {
duplicateMovieClip ("MC", "mc1", 1);
mc1._y += (1*MC._height)+ 10;
duplicateMovieClip ("MC", "mc2", 2);
mc2._y += (2*MC._height)+ 10;
duplicateMovieClip ("MC", "mc3", 3);
mc3._y += (3*MC._height)+ 10;
duplicateMovieClip ("MC", "mc4", 4);
mc4._y += (4*MC._height)+ 10;
duplicateMovieClip ("MC", "mc5", 5);
mc5._y += (5*MC._height)+ 10;
duplicateMovieClip ("MC", "mc6", 6);
mc6._y += (6*MC._height)+ 10;
duplicateMovieClip ("MC", "mc7", 7);
mc7._y += (7*MC._height)+ 10;
duplicateMovieClip ("MC", "mc8", 8);
mc8._y += (8*MC._height)+ 10;
duplicateMovieClip ("MC", "mc9", 9);
mc9._y += (9*MC._height)+ 10;
duplicateMovieClip ("MC", "mc10", 10);
mc10._y += (10*MC._height)+ 10;
} |
Verwijderd
on(press){
i=10;
while(i--){_root.dupliceermij.duplicateMovieClip('dupliceermij_'+i, _root.globaldepth++)}
}
Lekker efficient....is zelfs de snelste bytecode