Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 22-07-2005, 21:21   #1 (permalink)
Unser Flash gib uns heute
 
Registriert seit: Sep 2001
Ort: Murschnitz
Beiträge: 123
Question MC wird ohne Inhalt dupliziert

Hi Leute

ich hab einen mc (minibild) den ich als Container verwende um Bilder reinzuladen. Im MC ist noch eine Schaltfläche.Wie folgt wird der MC dann Dupliziert:
ActionScript:
  1. function loadpix(){
  2.         i = 0;
  3.         pixcount = 1;
  4.         umbruch = 3;
  5.         pixperpage = 12;
  6.         startposx = newposx = 123;
  7.         startposy = newposy = 70;
  8.         while (i< this.pixperpage) {
  9.             duplicateMovieClip(_root.minibild, "minibild"+pixcount, pixcount);
  10.             duplicateMovieClip(_root.minibild.schalter, "schalter"+pixcount, pixcount);
  11.             loadMovie(url add _root.picname[pixcount], "_root.minibild"+pixcount);
  12.             setProperty("_root.minibild"+pixcount, _y, this.newposy);
  13.             setProperty("_root.minibild"+pixcount, _x, this.newposx);
  14.             _root.minibild2.bild._x = ((160-this.bild._width)/2)
  15.             _root.minibild2.bild._y = ((120 -this.bild._height)/2)
  16.             newposx = newposx + 202;
  17.             if (i == umbruch){
  18.                 newposy = newposy + 140;
  19.                 newposx = startposx
  20.                 umbruch = umbruch + 4;
  21.             }
  22.             pixcount++;
  23.             i++;
  24.             if (pixcount == _root.files){
  25.                 break;
  26.             }
  27.         }
  28. };

Warum wird die Schaltfläche die ja im MC ist nicht mit dupliziert?
__________________
http://www.mdm-systems.de
Dani Düsentrieb ist offline   Mit Zitat antworten
Alt 22-07-2005, 21:27   #2 (permalink)
voidboy
 
Benutzerbild von rendner[i]
 
Registriert seit: Sep 2004
Ort: München
Beiträge: 5.588
Das hier ist schon ein Fehler...
PHP-Code:
 duplicateMovieClip(_root.minibild"minibild"+pixcountpixcount);
                
duplicateMovieClip(_root.minibild.schalter"schalter"+pixcountpixcount); 
Mit dem 2ten duplicate löschst du den ersten weil du den 2ten auf die gleiche Tiefe wie den davor legst.
__________________
ERROR: Signature is too large
rendner[i] 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:31 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele