Article View: ch.admin
Article #15042Flash5 Variable hoch und herunterz�hlen
From: M�chler Philippe
Date: Tue, 07 Nov 2000 00:00
Date: Tue, 07 Nov 2000 00:00
47 lines
1555 bytes
1555 bytes
Hallo
ich habe folgendes Problem:
Ich habe die variablen max_id und id.
2 Buttons (einer zum hoch und einer zum runterz�hlen
jedoch wenn ich hochz�hle und dern wert max_id �berschreite, wird die if
abfrage nciht ausgef�hrt
beim herunterz�hlen wird der wert auf auf max_id gesetzt. wenn ich jedoch
nochmals runtergehe, so erscheint NaN ber nur wenn ich �ber null auf max_id
gehe...
details des codes:
frame 1:
loadVariablesNum ("includes/gb_maxid.php", 0, "POST");
(FUNKTIONIERT)
frame 2:
id = "1";
frame 3:
load movies und so sachen
button hochz�hlen in frame 3:
on (release) {
id = id + 1;
if (id > max_id) {
id = 1;
}
gotoAndPlay (3);
}
button hochz�hlen in frame 3:
on (release) {
id = id - 1;
if (id < 1) {
id = max_id;
}
gotoAndPlay (3);
}
(habe beides auch mit id = ++id und id = --id versucht. das selbe problem)
ich hoffe jemand versteht was ich meine
mfg philippe
Technical Details
Message-ID:
<bo3au8.pr9.ln@192.168.1.2>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII X-Google-Thread: 11008d,74919e020730035a,start X-Google-Attributes: gid11008d,public From: "M�chler Philippe" <philippe@virtual-drugs.ch> Subject: Flash5 Variable hoch und herunterz�hlen Date: 2000/11/07 Message-ID: <bo3au8.pr9.ln@192.168.1.2> X-Deja-AN: 690953446 X-Trace: 7 Nov 2000 22:36:34 +0100, 212.254.11.43 Organization: Customers of Tiscali DataComm AG - http://www.tiscalinet.ch/ X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: ch.admin X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400