| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Pixelschubser Registriert seit: Sep 2001 Ort: Hamburg
Beiträge: 48
| Problem mit Bedingungen
Folgendes Script hab ich auf einem MC: onClipEvent (enterFrame) { if (Cat == "0") { _global.newNavpos = YConst+_global.NavAbstand; } else if (Cat == "A") { _global.newNavpos = YConst+0; } else if (Cat == "B") { _global.newNavpos = YConst-((_global.NavAbstand)*1); } else if (Cat == "C") { _global.newNavpos = YConst-((_global.NavAbstand)*2); } else if (Cat == "D") { _global.newNavpos = YConst-((_global.NavAbstand)*3); } else if (Cat == "E") { _global.newNavpos = YConst-((_global.NavAbstand)*4); } else if (Cat == "F") { _global.newNavpos = YConst-((_global.NavAbstand)*5); } else if (Cat == "G") { _global.newNavpos = YConst-((_global.NavAbstand)*6); } else if (Cat == "H") { _global.newNavpos = YConst-((_global.NavAbstand)*7); } else if (Cat == "I") { _global.newNavpos = YConst-((_global.NavAbstand)*8); } else if (Cat="K") { _global.newNavpos = YConst-((_global.NavAbstand)*9); } else if (Cat == "L") { _global.newNavpos = YConst-((_global.NavAbstand)*10); } else if (Cat == "M") { _global.newNavpos = YConst-((_global.NavAbstand)*11); } } Flash führt alle Abfragen aus, bis zur 10ten. Sobald die erfüllt ist funktioniert gar nichts mehr. Hab schon alles möglich geändert: die Variablen, die Abfragen geändert, aufgeteilt,... Und bevor ich nun endgültig durchdrehe wollte ich doch mal fragen, ob Flash nur eine bestimmte Anzahl von Abfragen händeln kann. Oder was ist verkehrt? |
| | |
| | #2 (permalink) |
| Gast
Beiträge: n/a
|
erstmal: so kann man es besser lesen: ActionScript:
und dann: änder mal das ActionScript:
ActionScript:
sollte helfen, ich denke du weißt warum... edith: lies dir mal das zeug zu der "switch"-dings durch, kommt smover Geändert von robo kalkühl (16-08-2005 um 00:44 Uhr) |
|
| | #3 (permalink) |
| Achim Math.PI Registriert seit: Jul 2001 Ort: cool Colonia
Beiträge: 11.642
|
versuchs mal mit switch (in die hauptzeitleiste kopieren ) ActionScript:
__________________ gruß bloba 2 x onkel² b_d |
| | |
| | #4 (permalink) |
| Pixelschubser Registriert seit: Sep 2001 Ort: Hamburg
Beiträge: 48
|
switch kannte ich noch nicht, bzw. wusste bisher nichts damit anzufangen. (Dabei gibt's das ja schon seit Flash 4) Hab's gleich eingesetzt und es funzt wie Sau. Fettes Danke. Ohne euch wäre ich verzweifelt. |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |