Flashhilfe.de - Flash Community

Prototype: Movieclip.totalAction [Flash 8]

Forum > Tipps & Tricks zu Flash, Flex und Adobe AIR > Prototype: Movieclip.totalAction

 


AntwortenRegistrieren Seite1  

 12.07.2003, 19:38 
Benutzerbild von Madokan
Beiträge: 130
Wohnort: Berlin/Germany
Registriert: Mar 2002

Prototype: Movieclip.totalAction
Sämtliche MovieClips auf einmal Steuern

Prototype:
ActionScript:
1
2
3
4
5
6
7
8
Movieclip.prototype.totalAction = function(op,val) {
   this[op](val);
   for (var i in this) {
      if (typeof (this[i]) == "movieclip") {         
         this[i].totalAction(op,val);
      }
   }
};


Beispiel Aufruf:
ActionScript:
1
2
3
4
// Verwenden
this.totalAction("play");
this.totalAction("stop");
this.totalAction("gotoAndStop",20);

[Flashstar]
http://www.flashstar.de
Schlagwörter: Movieclip, prototype
 
Themen
Ähnliche Beiträge zum Thema
 

AntwortenRegistrieren Seite1  

Schnellantwort

Du musst registriert sein, um diese Funktion nutzen zu können.
Partner Webseiten: DesignerInAction.de   Designnation.de   Mediengestalter.info   php-resource.de   phpforum.de   phpwelt.de   Pixelio.de   PSD-Tutorials.de   Tutorials.de

Haftungsausschluss   Datenschutzerklärung   Hier Werben   Impressum
© 1999-2012 Sebastian Wichmann - Flashhilfe.de