Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 18-07-2004, 12:00   #1 (permalink)
Halbzeitflasher
 
Benutzerbild von lepimax
 
Registriert seit: Jul 2001
Ort: München
Beiträge: 823
problem mit easing_equations - robertpenner

hi
ich möchte gern mit der motion class von robert penner und versuche ein quader mit ner formel zu vergrößern. das Problem ist er soll seine anfangs x y werte halten und zwar sowohl wenn er von link nach rechts oder rechts nach links geht.
hab dazu ein beispiel mit nem tween in der zeitleiste gemacht.
hier zum anschauen.

hier der link

bitte um hilfe wie man das machen kann mit der easing_equation von robert penner - danke.
__________________
have a nice day
lepimax ist offline   Mit Zitat antworten
Alt 18-07-2004, 14:02   #2 (permalink)
Flashaholic
 
Benutzerbild von atothek
 
Registriert seit: Feb 2003
Ort: Berlin
Beiträge: 1.459
wenn du die AS2 klassen nutzt dann kannst du den code einfach mal in ein frame kopieren und gucken was passiert

PHP-Code:
import com.robertpenner.easing.*;

_global.= [{w:200h:200x:-100y:-100}, {w:-100h:-100x:50y:50}, {w:150h:150x:-75y:-75}, {w:-250h:-250x:125y:125}];
this.inMotion false;
this.mc this.createEmptyMovieClip("newMc"1);

this.drawRect = function(pMcpWpH) {
    
pMc.clear();
    
pMc.lineStyle(10x0099ff100);
    
pMc.beginFill(0xff9900100);
    
pMc.lineTo(pW0);
    
pMc.lineTo(pWpH);
    
pMc.lineTo(0pH);
    
pMc.lineTo(00);
    
pMc.endFill();
};

this.drawRect(this.mc100100);

this.mc._x Stage.width/2-this.mc._width/2;
this.mc._y Stage.height/2-this.mc._height/2;

this.mc.onPress = function() {
    
this._parent.scaleTo();
};

this.scaleTo = function() {
    
    if (
this.inMotion == true) {
        return;
    }
    
    var 
0;
    var 
this.mc._width;
    var 
this.mc._height;
    var 
xs this.mc._x;
    var 
ys this.mc._y;
    
    if (
_global.== undefined) {
        
_global.0;
    } else if (
_global.c>=_global.v.length) {
        
_global.0;
    }
    
    if (
this.inMotion == false) {
        
this.onEnterFrame = function() {
            
this.drawRect(this.mcBack.easeOut(tw_global.v[_global.c].w20), Back.easeOut(th_global.v[_global.c].h20));
            
this.mc._x Back.easeOut(txs_global.v[_global.c].x20);
            
this.mc._y Back.easeOut(tys_global.v[_global.c].y20);
            
t++;
            if (
t>=20) {
                
_global.c++;
                
this.inMotion false;
                
delete this.onEnterFrame;
            }
        };
    }
    
this.inMotion true;
}; 
__________________
TVNEXT Solutions
atothek ist offline   Mit Zitat antworten
Alt 18-07-2004, 15:41   #3 (permalink)
Halbzeitflasher
 
Benutzerbild von lepimax
 
Registriert seit: Jul 2001
Ort: München
Beiträge: 823
hi,
danke hab aber nur mx und so kein as2
haste dafür auch schon was ?
thx.
Gruß
Vito
__________________
have a nice day
lepimax ist offline   Mit Zitat antworten
Alt 18-07-2004, 16:20   #4 (permalink)
Neuer User
 
Benutzerbild von :: RK ::
 
Registriert seit: Jan 2002
Ort: Umgebung Stuttgart
Beiträge: 5.412
hi,

hab was in meiner Sig, vllt hilft dir das weiter
__________________
Das Glück im Leben hängt von den guten Gedanken ab, die man hat.

Easing_Equations / Flash Kontaktformular / FlashPlugin W3C konform / Nützliche Beiträge zu FAQs
:: RK :: ist offline   Mit Zitat antworten
Alt 18-07-2004, 16:31   #5 (permalink)
Halbzeitflasher
 
Benutzerbild von lepimax
 
Registriert seit: Jul 2001
Ort: München
Beiträge: 823
hab mir jetzt bei meinen Problem noch nicht geholfen.
ich probiergerade die sache aus - ohne lösung bisher...

das hab ich biesher:

PHP-Code:
        //trace("hin");
    
x_b 500;
    
= new Tween (gelb"_width"Math.easeInOutExpo 500x_b70false);
    
y_b 500;
    
= new Tween (gelb"_height"Math.easeInOutExpo 50y_b70false);
    
z_b 193 ;
    
h_b 247 ;
    
z_c 193 + (x_b/2) ;
    
h_c 247 + (y_b/2);
    
    
= new Tween (gelb"_x"Math.easeInOutExpo 50z_bz_cfalse);
    
= new Tween (gelb"_y"Math.easeInOutExpo 50h_bh_cfalse); 
__________________
have a nice day
lepimax 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 05:07 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele