Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 13-06-2004, 17:04   #1 (permalink)
not fast but furious
 
Registriert seit: Jan 2002
Beiträge: 429
suche color-fade script

hallo

ich suche ein script für einen colorfade. ich habe mal hier im forum nachgesehen, aber nix gefunden. was ich gefunden habe, ist ein alpha-fade. aber das bringt mir gar nichts.

könnt ihr mir weiterhelfen?

cu lionhead
__________________
There is no spoon! Neo - Matrix

www.web-und-service.com
LionHead ist offline   Mit Zitat antworten
Alt 13-06-2004, 18:00   #2 (permalink)
\x3a\x6f\x29
 
Benutzerbild von [je]
 
Registriert seit: Apr 2004
Ort: paris
Beiträge: 806
PHP-Code:
Colorfade = function(FromToStepsClip)
{
    
this.0;
    
this.Steps Steps;
    
this.hColor = new Color(Clip);
    
this.fColors = [(From 0xFF0000) >> 16, (From 0xFF00) >> 8From 0xFF];
    
this.tColors = [(To 0xFF0000) >> 16, (To 0xFF00) >> 8To 0xFF];
};

Colorfade.prototype.Update = function()
{
    
this.t++;
    
    if (
this.this.Steps)
    {
        
this.hColor.setRGB(this.tColors[0] << 16 this.tColors[1] << this.tColors[2]);
        return;
    }
    
    var 
Colors = new Array(3);
    for (var 
03i++)
        
Colors[i] = this.fColors[i] + (this.tColors[i] - this.fColors[i]) / this.Steps this.t;
        
    
this.hColor.setRGB(Colors[0] << 16 Colors[1] << Colors[0]);
};

fade = new Colorfade(0x0000000xFFFFFF200_root.clip);
_root.onEnterFrame = function() { fade.Update(); }; 
sowas?
__________________
joa ebert
http://blog.joa-ebert.com/ - http://www.joa-ebert.com/
[je] ist offline   Mit Zitat antworten
Alt 13-06-2004, 18:52   #3 (permalink)
not fast but furious
 
Registriert seit: Jan 2002
Beiträge: 429
sieht doch echt gut aus. aber wie rufe ich das auf?

das ganze ist ja dann auch zum ein- und ausfaden.

hast du da ein beispiel für mich?
__________________
There is no spoon! Neo - Matrix

www.web-und-service.com
LionHead 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 08:51 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele