Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 08-12-2005, 16:25   #1 (permalink)
nichts ist unmöglich
 
Benutzerbild von leon19
 
Registriert seit: Jan 2004
Ort: wien
Beiträge: 128
Action script Fehler

hi all

ich hab nen fehler im code der vorher nicht da war kann mir wer helfen

**Fehler** Symbol=Symbol 10, Ebene=Action Layer, Bild=1:Zeile 37: Die linke Seite des Zuweisungsoperators muss eine Variable oder eine Eigenschaft sein.
eval(i + ".Let") = substring(Field1, ii, 1);

Anzahl der ActionScript-Fehler: 1 Gemeldete Fehler: 1

CF1._x = x1;
CF1._y = y1;
CF2._x = x2;
CF2._y = y2;
div1 = 0.556000;
div2 = 0.156000;
x1 = x1 - x1d * div1;
y1 = y1 - y1d * div1;
x2 = x2 - x2d * div2;
y2 = y2 - y2d * div2;
if (_ymouse < 350)
{
x1d = x1 - _xmouse;
y1d = y1 - _ymouse;
}
else
{
x1d = x1 - 240;
y1d = y1 - 240;
} // end if
x2d = x2 - x1;
y2d = y2 - y1;
i = i + 1;
ii = ii + 1;
duplicateMovieClip("Letter", i, i);
setProperty(i, _x, x2);
setProperty(i, _y, y2);
setProperty(i, _xscale, (x2 - (getProperty(i - 1, _x))) * 2.500000);
if ((x2 - (getProperty(i - 1, _x))) * 2.500000 > 0)
{
setProperty(i, _yscale, (x2 - (getProperty(i - 1, _x))) * 2.500000);
}
else
{
setProperty(i, _yscale, -(x2 - (getProperty(i - 1, _x))) * 2.500000);
} // end if


eval(i + ".Let") = substring(Field1, ii, 1); (keine ahnung was ich da machen soll


if (ii > length(Field1))
{
ii = 0;
} // end if
step = -20;
setProperty(i - 54 - step, _alpha, 90);
setProperty(i - 55 - step, _alpha, 80);
setProperty(i - 56 - step, _alpha, 70);
setProperty(i - 57 - step, _alpha, 60);
setProperty(i - 58 - step, _alpha, 40);
setProperty(i - 59 - step, _alpha, 20);
removeMovieClip(i - 60 - step);
__________________
Der erste Schritt bringt einem einwenig seinem Ziel näher darum setzte ihn damit du schneller voran kommst ! Das Leben ist das was du draus machst
leon19 ist offline   Mit Zitat antworten
Alt 08-12-2005, 16:35   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
Du solltest dir mal die modernere Flash-Schreibweise mit der Punktsyntax statt der veralteten Flash4-Syntax wie z.B. mit setProperty anschauen:
PHP-Code:
//Flash 4:
setProperty(i_yy2);

//Flash 7/8:
_level0.i._y y2;

//Flash 4:
eval(".Let") = substring(Field1ii1);

//Flash 7/8:
_level0["i"+".Let"] = Feld1.substring(ii,1); 
BTW: "i" wird in der Programmierung meist nur als Schleifenzähler genutzt, für alles andere solltest du dir treffendere Variablenbezeichnungen einfallen lassen...
  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 04:44 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele