Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 21-04-2005, 07:22   #1 (permalink)
Einsteiger
 
Registriert seit: Jan 2005
Ort: Bayern
Beiträge: 26
Mehrere If´s funzen nicht.

hallo. bin flashneuling.
habe movs hinter denen schaltflächen liegen. diese werden im ersten frame auf zielbereiche verschoben. bei jedem plazieren wird in einem dynamischen textfeld "stimmt" oder "stimmt nicht" ausgegeben. das klappt.
sobald alles movs plaziert sind, soll noch ne komplett-abfrage gestartet werden.
das erfolgt über einen button. was stimmt denn an dem script nicht? wer hat denn mal kurz zeit.....es wär echt dringlich. Danke michael

on (press)
{
if (getProperty("/duenn1", _droptarget) == "/1ziel" &&
("/duenn2", _droptarget) == "/1ziel" &&
("/normal1", _droptarget) == "/2ziel" &&
("/normal2", _droptarget) == "/2ziel" &&
("/normal3", _droptarget) == "/2ziel" &&
("/normal4", _droptarget) == "/2ziel" &&
("/dick1", _droptarget) == "/3ziel" &&
("/dick2", _droptarget) == "/3ziel" &&
("/dick3", _droptarget) == "/3ziel" &&
("/dick4", _droptarget) == "/3ziel" &&
("/dick5", _droptarget) == "/3ziel" &&
("/dick6", _droptarget) == "/3ziel" &&
("/sdick1", _droptarget) == "/4ziel")
{
play();
}
else {
_root.v_kontrolle = "Leider ist mindestens ein Männchen noch am falschen Platz. Versuchen Sie es noch einmal.";
}
}

on (rollOut)
{
_root.v_kontrolle = "";
}
some1 ist offline   Mit Zitat antworten
Alt 21-04-2005, 07:32   #2 (permalink)
Definitionssache
 
Benutzerbild von dburucu
 
Registriert seit: Apr 2003
Ort: Braunschweig
Beiträge: 2.433
getproperty sollte überall sein, oder?

ActionScript:
  1. on (press)
  2. {
  3. if (getProperty("/duenn1", _droptarget) == "/1ziel" &&
  4. getProperty("/duenn2", _droptarget) == "/1ziel" &&
  5. getProperty("/normal1", _droptarget) == "/2ziel" &&
  6. getProperty("/normal2", _droptarget) == "/2ziel" &&
  7. getProperty("/normal3", _droptarget) == "/2ziel" &&
  8. getProperty("/normal4", _droptarget) == "/2ziel" &&
  9. getProperty("/dick1", _droptarget) == "/3ziel" &&
  10. getProperty("/dick2", _droptarget) == "/3ziel" &&
  11. getProperty("/dick3", _droptarget) == "/3ziel" &&
  12. getProperty("/dick4", _droptarget) == "/3ziel" &&
  13. getProperty("/dick5", _droptarget) == "/3ziel" &&
  14. getProperty("/dick6", _droptarget) == "/3ziel" &&
  15. getProperty("/sdick1", _droptarget) == "/4ziel")
  16. {
  17. play();
  18. }
  19. else {
  20. _root.v_kontrolle = "Leider ist mindestens ein Männchen noch am falschen Platz. Versuchen Sie es noch einmal.";
  21. }
  22. }
  23.  
  24. on (rollOut)
  25. {
  26. _root.v_kontrolle = "";
  27. }
dburucu ist offline   Mit Zitat antworten
Alt 21-04-2005, 07:49   #3 (permalink)
Einsteiger
 
Registriert seit: Jan 2005
Ort: Bayern
Beiträge: 26
das wars...

jep.

es geht!!!!!!!!!!!

vielen dank.
das ich das, auch als anfänger, nicht gesehen habe...tztztz
some1 ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 22:47 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele