Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 18-11-2003, 13:37   #1 (permalink)
Animateur
 
Benutzerbild von Master Wu
 
Registriert seit: Jan 2003
Ort: MZ
Beiträge: 1.536
instanz._color?

hi, simple Frage, finde den befehl nicht

so wie

instanz._alpha = 20;

will ich die Farbe ändern:

instanz._color = 234523;

_color ist natürlich falsch.
Wie heisst der richtige Befehl?

danke!
__________________
there is no way to happiness, happiness is the way - flashgames
Master Wu ist offline   Mit Zitat antworten
Alt 18-11-2003, 13:42   #2 (permalink)
HAY
Neuer User
 
Benutzerbild von HAY
 
Registriert seit: Aug 2002
Ort: Faust-Stadt
Beiträge: 2.577
hi
ActionScript:
  1. meineFarbe = new Color(mc);
  2. meineFarbe.setRGB(0x993366);
__________________
gruß Harry
HAY ist offline   Mit Zitat antworten
Alt 18-11-2003, 17:48   #3 (permalink)
Erstmal n Herri!
 
Benutzerbild von _Hannes_
 
Registriert seit: Aug 2002
Ort: Hamburg
Beiträge: 1.233
und das ganze als Prototype:

ActionScript:
  1. MovieClip.prototype.addProperty("_farbe", function () {
  2.     //weist dem Movieclip eine Farbe zu im Format 0xRRGGBB (Hexadezimal)
  3.     if (!this.colorObj) {
  4.         this.colorObj = new Color(this);
  5.         return false;
  6.     } else {
  7.         return this.colorObj.getRGB().toString();
  8.     }
  9. }, function (val) {
  10.     if (!this.colorObj) this.colorObj = new Color(this);
  11.     this.colorObj.setRGB(val);
  12. });
__________________
hannesstruss.de
_Hannes_ ist offline   Mit Zitat antworten
Alt 18-11-2003, 18:22   #4 (permalink)
Animateur
 
Benutzerbild von Master Wu
 
Registriert seit: Jan 2003
Ort: MZ
Beiträge: 1.536
hey, das ist cool (wenns so funktioniert wie ichs mir vorstelle )

danke euch beiden!
__________________
there is no way to happiness, happiness is the way - flashgames
Master Wu 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 16:36 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele