Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 27-03-2004, 11:39   #1 (permalink)
Neuer User
 
Registriert seit: Jun 2002
Beiträge: 23
Unhappy actionscript Problemme beim flash mx 2004

Hi....
Ich benutze jetzt Flash MX 2004 Proffessional und habe Problemme bei der benutzung meines gästebuches dass ich mal mit flash mx gemacht habe. es klappt nähmlich nichts.
vielleicht liegt das Problem an den Begriff "_root." weil ich bei flash mx 2004 proff "form" präsentation anwende.
was mache ich falsh???
here ist meine AS....

ActionScript:
  1. onClipEvent (load) {
  2.         _visible=0;
  3.         function laden() {
  4.                 loadVariables("http://mitglied.lycos.de/thiyokphp/auslesen.php3?z="+new Date().getTime(), "");
  5.                 loadVariables("http://mitglied.lycos.de/thiyokphp/gwert.txt?"+new Date().getTime(), "");
  6.         }
  7.         laden();
  8.         _parent.sy = _y;
  9.         _parent.sx = _x;
  10.         function button(start,akt_an) {
  11.                 y_pos = 1;
  12.                 for (i=start; i<=akt_an; i++) {
  13.                         if (i >Number(anzahl)) {
  14.                                 break;
  15.                         }
  16.                         if (i>start+(akt_an-start)/2*2) {
  17.                                 if (m != 2) {
  18.                                         y_pos = 1;
  19.                                 }
  20.                                 m = 2;
  21.                         } else if (i>start+(akt_an-start)/2) {
  22.                                 if (m != 1) {
  23.                                         y_pos = 1;
  24.                                 }
  25.                                 m = 1;
  26.                         } else {
  27.                                 m = 0;
  28.                         }
  29.                         _root.attachMovie("mc", "mc"+i, 5000-i);
  30.                         gEin=eval("ein"+i);
  31.                         _root["mc"+i]._y = _parent.sy+y_pos*_root["mc"+i]._height*1;
  32.                         _root["mc"+i].nameW = eval("name"+gEin);
  33.                         _root["mc"+i].emailW = eval("email"+gEin);
  34.                         _root["mc"+i].count=gEin;
  35.                         nr=eval("nr"+gEin);
  36.                         _root["mc"+i].time=nr;
  37.                         _root["mc"+i]._x = _parent.sx+m*_root["mc"+i]._width*1;
  38.                         y_pos++;
  39.                 }
  40.         }
  41. }
  42. onClipEvent (data) {
  43.         button(1,10);
  44.         _root.max = Number(anzahl);
  45.         _root.nr=1;
  46. }
  47.  
  48. {
danke
thiyok ist offline   Mit Zitat antworten
Alt 27-03-2004, 12:00   #2 (permalink)
meistens harmlos
 
Benutzerbild von rena
 
Registriert seit: Jun 2001
Ort: Stuttgart
Beiträge: 17.643
Hab MX2004 nicht von daher kann ich das nicht hinsichtlich der Art der Präsentation beurteilen.

Was mir aber beim durchlesen aufgefallen ist: Du hast die Variable "m" nicht definiert bevor sie abgefragt wird. FlashMX2004 ist da etwas penibler geworden und läßt keine undefinierten Variablen mehr zu. Vielleicht liegt's ja schon daran.

Gruß
Rena
__________________
www.rena-hermann.de

The angels have the phone box
rena 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 05:40 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele