Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 24-02-2006, 13:39   #1 (permalink)
Neuer User
 
Registriert seit: Sep 2004
Beiträge: 888
Question function löschen?

hi ich habe eine kleine frage wie kann man eine function löschen
flozwo ist offline   Mit Zitat antworten
Alt 24-02-2006, 13:52   #2 (permalink)
Neuer User
 
Benutzerbild von the binary
 
Registriert seit: Jul 2001
Ort: Berlin | Friedrichshain
Beiträge: 3.561
entweder 'überschreiben' oder mit 'delete' löschen..

gruss
__________________
8bm | join ff@BOINC
formpackage.org | audiohunter.de | problematica.de | 8ball-media.de/blog | taikonauten.cn
the binary ist offline   Mit Zitat antworten
Alt 24-02-2006, 13:55   #3 (permalink)
Neuer User
 
Registriert seit: Sep 2004
Beiträge: 888
Unhappy

du bist gut =) habe ich schon versucht =) macht der aber leider net ganz.
also über schreiben tu ich sie aber wenn ich da ein paar mehr werte drinne habe dann zeigt der die dann auch an. also von dem vorherigen functionsaufruf
flozwo ist offline   Mit Zitat antworten
Alt 24-02-2006, 13:57   #4 (permalink)
All-rounder
 
Benutzerbild von thebiz
 
Registriert seit: Mar 2004
Ort: Bayerische Rhön
Beiträge: 2.507
wenn werte in variablen gespeichert wurden,
müssen die auch gelöscht werden.
__________________

--------------------------------
Ich klicke, ergo bin ich. (me)
--------------------------------
thebiz ist offline   Mit Zitat antworten
Alt 24-02-2006, 13:58   #5 (permalink)
Neuer User
 
Benutzerbild von the binary
 
Registriert seit: Jul 2001
Ort: Berlin | Friedrichshain
Beiträge: 3.561
einfach mal code posten, um die 'raterei' abzukürzen..
__________________
8bm | join ff@BOINC
formpackage.org | audiohunter.de | problematica.de | 8ball-media.de/blog | taikonauten.cn
the binary ist offline   Mit Zitat antworten
Alt 24-02-2006, 15:49   #6 (permalink)
Neuer User
 
Registriert seit: Sep 2004
Beiträge: 888
okay also es sieht so aus

ActionScript:
  1. rootNavi = ["a", "b", "c", "d", "e"];
  2. navi_0 = ["Urnenkandernenwagen", "Aufbahrungsleuchter"];
  3. navi_1 = ["Urn", "Auf"];
  4. navi_2 = ["Var", "n", "Ussskan"];
  5. navi_3 = ["Internet", "s", "Auf"];
  6. navi_4 = ["Varirnet", Sr", "Aur"];
  7. navi_5 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  8. navi_6 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  9. navi_7 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  10. navi_8 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  11. navi_9 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  12. navi_10 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  13. navi_11 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  14. navi_12 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  15. navi_13 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  16. navi_14 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  17. navi_15 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  18. navi_16 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  19. navi_17 = ["K1","K2","R1", "Rt2", "Rt3", "R4", "R5"];
  20. //functions aufruf
  21. table(rootNavi);
  22. //functionen
  23. function table(arr_nam) {
  24.     // spaltenanzahl
  25.     columnsCount = 1;
  26.     // horizontale Schrittweite
  27.     hspace = 19;
  28.     // vertikale Schrittweite
  29.     vspace = 19;
  30.     // Erzeuge Gitter
  31.     trace(typeof(arr_nam));
  32.     for (i=0; i<arr_nam.length; i++) {
  33.         item_mc = _root.emp.attachMovie("navi", "item"+String(i), "1"+i);
  34.         item_mc._x = 4+(i%columnsCount)*hspace;
  35.         item_mc._y = 4+Math.floor(i/columnsCount)*vspace;
  36.         _root.emp["item"+[i]].txt.text = arr_nam[i];
  37.         //id erzeugen
  38.         _root.emp["item"+[i]].id = i;
  39.         _root.emp["item"+[i]].btn.onRollOver = function() {
  40.             _root.emp["item"+[this._parent.id]].gotoAndPlay('on');
  41.         };
  42.         _root.emp["item"+[i]].btn.onRollOut = function() {
  43.             _root.emp["item"+[this._parent.id]].gotoAndPlay('no');
  44.         };
  45.         _root.emp["item"+[i]].btn.onPress = function() {
  46.             _root.emp["item"+[this._parent.id]].gotoAndPlay('die');
  47.         };
  48.         _root.emp["item"+[i]].btn.onRelease = function() {
  49.             //trace(this._parent.id);
  50.             //trace(["navi_"+[this._parent.id]]);
  51.             for (r=0; r<i; r++) {
  52.                 _root.emp["item"+[r]].bg._visible = 1;
  53.             }
  54.             _root.header.headline.text = arr_nam[this._parent.id];
  55.             _root.emp["item"+[this._parent.id]].bg._visible = 0;
  56.             //subnav
  57.             table_sub(eval( "navi_" + this._parent.id ));
  58.         };
  59.     }
  60. }
  61. //
  62. //subnavi
  63. //
  64. function table_sub(arr_sub) {
  65.     // spaltenanzahl
  66.     spaltenCount = 2;
  67.     // horizontale Schrittweite
  68.     hospace = 103;
  69.     // vertikale Schrittweite
  70.     vespace = 19;
  71.     // Erzeuge Gitter         
  72.     for (z=0; z<arr_sub.length; z++) {
  73.         con_mc = _root.sub.attachMovie("sub_reiter", "con"+String(z), "2"+z);
  74.         con_mc._x = (z%spaltenCount)*hospace;
  75.         con_mc._y = Math.floor(z/spaltenCount)*vespace;
  76.         _root.sub["con"+[z]].txt.text = arr_sub[z];
  77.         _root.sub["con"+[z]].idz = z;
  78.         _root.sub["con"+[z]].btn.onRollOver = function() {
  79.             _root.sub["con"+[this._parent.idz]].bg._alpha = 70;
  80.         };
  81.         _root.sub["con"+[z]].btn.onRollOut = function() {
  82.             _root.sub["con"+[this._parent.idz]].bg._alpha = 100;
  83.         };
  84.         _root.sub["con"+[z]].btn.onPress = function() {
  85.             _root.sub["con"+[this._parent.idz]].bg._alpha = 50;
  86.         };
  87.         _root.sub["con"+[z]].btn.onRelease = function() {
  88.             //trace(this._parent.id);
  89.             for (rz=0; rz<z; rz++) {
  90.                 _root.sub["con"+[rz]].bg._visible = 1;
  91.             }
  92.             _root.sub["con"+[this._parent.idz]].bg._visible = 0;
  93.             //_root.header.headline.text=arr_nam[this._parent.id];
  94.         };
  95.     }
  96. }
  97. //table_sub(rootNavi);
  98. //
  99. //
  100. //slide
  101. function slide_up() {
  102.     this._y -= (-280+this._y)/5;
  103. }
  104. function slide_down() {
  105.     this._y -= (-432+this._y)/5;
  106. }
  107. //navi_too
  108. _root.attachMovie("navi_too", "navi_too", 2);
  109. _root.onEnterFrame = function() {
  110.     if (_root.emp._height>0) {
  111.         //trace(_root.emp._height);
  112.         _root.navi_too._y = _root.emp._height+29;
  113.         delete this.onEnterFrame;
  114.     }
  115. };
  116. //impressum unsichtbar
  117. _root.impressum._visible = 0;
  118. _root.preisAnsicht._visible = 0;
  119. //navi_too btn
  120. _root.navi_too.impressum.onRelease = function() {
  121.     _root.impressum._visible = 1;
  122.     _root.preisAnsicht._visible = 0;
  123. };
  124. _root.impressum.close_btn.onRelease = function() {
  125.     _root.impressum._visible = 0;
  126. };
  127. _root.navi_too.preisAnfrage.onRelease = function() {
  128.     _root.preisAnsicht._visible = 1;
  129.     _root.impressum._visible = 0;
  130. };
  131. _root.preisAnfrage.onRelease = function() {
  132.     _root.preisAnsicht._visible = 1;
  133.     _root.impressum._visible = 0;
  134. };
  135. _root.preisAnsicht.close_btn.onRelease = function() {
  136.     _root.preisAnsicht._visible = 0;
  137. };
  138. _root.preisAnsicht.close_btn1.onRelease = function() {
  139.     _root.preisAnsicht._visible = 0;
  140. };
  141. //header btn
  142. _root.header.btn.onRelease = function() {
  143.     trace("apha function ;)");
  144. };
  145. //subnavi
  146. _root.sub.attachMovie("navi_sub", "navi", 3);
  147. //artikelbeschreibung
  148. _root.artikelbeschreibung.r._visible = 0;
  149. _root.artikelbeschreibung.r_btn._visible = 0;
  150. _root.artikelbeschreibung.h_btn.onRelease = function() {
  151.     _root.artikelbeschreibung.onEnterFrame = slide_up;
  152.     //
  153.     _root.artikelbeschreibung.h._visible = 0;
  154.     _root.artikelbeschreibung.h_btn._visible = 0;
  155.     //
  156.     _root.artikelbeschreibung.r._visible = 1;
  157.     _root.artikelbeschreibung.r_btn._visible = 1;
  158. };
  159. _root.artikelbeschreibung.r_btn.onRelease = function() {
  160.     _root.artikelbeschreibung.onEnterFrame = slide_down;
  161.     //
  162.     _root.artikelbeschreibung.r._visible = 0;
  163.     _root.artikelbeschreibung.r_btn._visible = 0;
  164.     //
  165.     _root.artikelbeschreibung.h._visible = 1;
  166.     _root.artikelbeschreibung.h_btn._visible = 1;
  167. };

Geändert von flozwo (24-02-2006 um 15:52 Uhr)
flozwo ist offline   Mit Zitat antworten
Alt 25-02-2006, 07:42   #7 (permalink)
Neuer User
 
Benutzerbild von the binary
 
Registriert seit: Jul 2001
Ort: Berlin | Friedrichshain
Beiträge: 3.561
wtf..
da fehlt ein gänsefüsschen.


PHP-Code:
navi_4 = ["Varirnet"Sr", "Aur"]; 
zu

PHP-Code:
navi_4 = ["Varirnet""Sr""Aur"]; 
__________________
8bm | join ff@BOINC
formpackage.org | audiohunter.de | problematica.de | 8ball-media.de/blog | taikonauten.cn
the binary 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 13:29 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele