Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 11-09-2003, 14:51   #1 (permalink)
Neuer User
 
Benutzerbild von apfel007
 
Registriert seit: May 2003
Ort: Hamburg
Beiträge: 161
Nochmal MC Hilfe!

Moin !
Könnte noch mal etwas Hilfe in Bezug auf MC's gebrauchen.. vielleicht begreife ich es dann auch ??!
Also... Wie man sieht? wird die Funktion Draw mit makeline aufgerufen...alle Daten die gebraucht werden, werden durch.. this.anfang(); &
this.Segmentvergebung();
erstellt. Nun möchte ich, das die Funktion 2mal ausgeführt wird .. mit 2 verschieden Linienstärken ...

Also muß ich ja in makeline einen MC erzeugen und damit die Funktion ausführen oder ? klappt auch, nur denke ich, das in draw _root und this ..... nicht stimmt, weil keine Werte ausgeben werden ..
Wer kann mir sagen, was ich anders schreiben muß ?

gruß apfel007
ActionScript:
  1. movieclip.prototype.draw = function() {
  2.     this.xx = 1;
  3.     this.xy = 2;
  4.     this.xz = 3;
  5.     trace("xxx"+_root.kreise[1][2][1]);
  6.     this.xp01 = _root.kreise[_root.linedraw[this.li][this.xx]][_root.linedraw[this.li][this.xy]][0];
  7.     this.yp01 = _root.kreise[_root.linedraw[this.li][this.xx]][_root.linedraw[this.li][this.xy]+1][0];
  8.     lineStyle(6, 0xE41C, 50);
  9.     this.moveTo(this.xp01, this.yp01);
  10.         this.Angle001 = this.kreise[_root.linedraw[this.li][this.xx]][_root.linedraw[this.li][this.xy]][5];
  11.     this.Angle01 = this.kreise[_root.linedraw[this.li][this.xx]][_root.linedraw[this.li][this.xy]][5];
  12.         this.onEnterFrame = function() {
  13.         if (_root.linedraw[this.li][this.xx+3] == 99) {
  14.             delete onEnterFrame;
  15.         }
  16.        
  17.         else       if (_root.linedraw[this.li][this.xz] == 1) {
  18.             case1();
  19.         } else if (_root.linedraw[this.li][this.xz] == 2) {
  20.             case2();
  21.         } else if (_root.linedraw[this.li][this.xz] == 3) {
  22.             case3();
  23.         } else if (_root.linedraw[this.li][this.xz] == 4) {
  24.             case4();
  25.         }
  26.     };
  27. };
  28. movieclip.prototype.makeLine = function() {
  29.     this.xx = 1;
  30.     this.xy = 2;
  31.     this.xz = 3;
  32.     this.li = 0;
  33.     var ss = 3;
  34.     this.anfang();
  35.     this.Segmentvergebung();
  36.    
  37.         _root.createEmptyMovieClip("d1", 80);
  38.     _root.createEmptyMovieClip("d2", 81);
  39.     //this.draw();
  40.     _root.d1.draw();
  41.    
  42.    
  43.     /*if (style == 1){
  44.         lineStyle(6,0xE41C,50);}
  45.         else{
  46.             lineStyle(2,0x00FF00,100);}*/
  47.    
  48. };
apfel007 ist offline   Mit Zitat antworten
Alt 12-09-2003, 08:45   #2 (permalink)
Neuer User
 
Benutzerbild von apfel007
 
Registriert seit: May 2003
Ort: Hamburg
Beiträge: 161
Blick riskieren ?

Wer könnte mal einen Blick auf den Code werfen ? Oder hab ich zu unübersichtlich geschrieben?

Gruß apfel007
apfel007 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 02:01 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele