Flash MX - Bewegungstween

Dieses Thema im Forum "Webentwicklung" wurde erstellt von sLy, 26. August 2005 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 26. August 2005
    Hallo.
    Ich habe vor in der Navigation ein wenig Bewegung ins Spiel zu bringen. Wenn ich mit der Maus drüber bin, dass sich der Text 5 pixel nach unten bewegt. MouseOut das selbe nur wieder zurück. Wie realisiere ich sowas?

    Hier ein kleines Beispiel ohne Bewegungstween.
    http://bosclan.funpic.de/test.swf

    Vielen Dank schon mal.
     
  2. 26. August 2005
    actionscript und movieclip (bewegung)
     
  3. 2. Oktober 2006
    AW: Flash MX - Bewegungstween

    movieclip mit einem tween für deine animation erstellen,namen vergeben und das ins ertse frame der timeline
    Code:
    MovieClip.prototype.mcRollOver = function() {
     this.onEnterFrame = function() {
     this._currentframe == this._totalframes ? delete this.onEnterFrame : this.nextFrame();
     };
    };
    MovieClip.prototype.mcRollOut = function() {
     this.onEnterFrame = function() {
     this._currentframe == 1 ? delete this.onEnterFrame : this.prevFrame();
     };
    };
    // usage 
    button_mc.onRollOver = function() {
     this.mcRollOver();
    };
    button_mc.onRollOut = function() {
     this.mcRollOut();
    }; 
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.