Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 01-02-2006, 20:19   #1 (permalink)
Achim Math.PI
 
Benutzerbild von bloba
 
Registriert seit: Jul 2001
Ort: cool Colonia
Beiträge: 11.642
[Stoff] BuildMatrix - grafischer Effekt

mal wieder was von mir... ein kleiner grafisher Effekt.
auf grund dem modulo "tabellen" code.
alles was ihr braucht ist, ein mc in die libary (mcItem)


und spass haben

PHP-Code:
//
function buildMatrix(hochweitzbanz) {
    var 
mytl this;
    var 
temp_xarr = [];
    var 
temp_yarr = [];
    var 
0;
    for (
i=0i<anzi++) {
        
mytl.attachMovie("mcItem"'btn'+ii, {_x:2500_y:0});
        
temp_yarr.push((i%zb)*(weit));
        
temp_xarr.push(Math.floor(i/zb)*(hoch));
    }
    
this.doOnPos = function() {
        
mytl["btn"+c].slideTo(temp_yarr[c], temp_xarr[c], 4);
        
c<anz c++ : (clearInterval(setter), trace("Juhu !! fertig"));
    };
    
setter setInterval(doOnPos100);
}
MovieClip.prototype.slideTo = function(whspeed) {
    
Math.floor(h);
    
Math.floor(w);
    
this.onEnterFrame = function() {
        
this._x += ((w-Math.round(this._x))/speed);
        
this._y += ((h-Math.round(this._y))/speed);
        if (
Math.round(this._y) == && Math.round(this._x) == w) {
            
delete this.onEnterFrame;
        }
    };
};
// aufruf 
function onMouseDown() {
    
buildMatrix(20201050);

__________________
gruß bloba

2 x onkel² b_d

Geändert von bloba (01-02-2006 um 20:53 Uhr)
bloba ist offline   Mit Zitat antworten
Alt 01-02-2006, 20:25   #2 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
ne ne ne ne netter schnipsel! sack & ab in sack!

groß gruß @ bloba
shorty
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.

Geändert von shorty (25-03-2007 um 13:00 Uhr)
shorty ist offline   Mit Zitat antworten
Alt 01-02-2006, 20:34   #3 (permalink)
Achim Math.PI
 
Benutzerbild von bloba
 
Registriert seit: Jul 2001
Ort: cool Colonia
Beiträge: 11.642
danke

wenigsten einer, der auf meine beiträge antwortet.

was würdest du daran noch ändern ?
__________________
gruß bloba

2 x onkel² b_d

Geändert von bloba (01-02-2006 um 20:36 Uhr)
bloba ist offline   Mit Zitat antworten
Alt 01-02-2006, 20:39   #4 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
tja bloba, ganz ehrlich, in der kürze liegt die würze, und kürzer geht wohl nicht - darum find ich das ja auch so toll

{edit} halt, stop. das oef im prototypen wird nicht gelöscht!
PHP-Code:
        if (Math.round(this._y) == && Math.round(this._x) == w) {
            
delete this.onEnterFrame;
            
        } 
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.

Geändert von shorty (01-02-2006 um 20:44 Uhr)
shorty ist offline   Mit Zitat antworten
Alt 01-02-2006, 20:50   #5 (permalink)
Achim Math.PI
 
Benutzerbild von bloba
 
Registriert seit: Jul 2001
Ort: cool Colonia
Beiträge: 11.642
gut aufgepasst da hattte ich das w mit dem h vertauscht setzen 1

habs korrigiert
__________________
gruß bloba

2 x onkel² b_d
bloba ist offline   Mit Zitat antworten
Alt 01-02-2006, 21:02   #6 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
danke für die häßliche biene*
*ich dussel fummel an den operatoren rum, und du tauschst einfach nur h gegen w ... das tut weh ...
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.

Geändert von shorty (01-02-2006 um 21:08 Uhr)
shorty ist offline   Mit Zitat antworten
Alt 01-02-2006, 21:06   #7 (permalink)
Achim Math.PI
 
Benutzerbild von bloba
 
Registriert seit: Jul 2001
Ort: cool Colonia
Beiträge: 11.642



>> *ich dussel fummel an den operatoren rum, und du tauschst einfach nur h gegen w ... das tut weh ...
>> gut ich habs ja auch verzapft daher war ich im heimvorteil
__________________
gruß bloba

2 x onkel² b_d

Geändert von bloba (01-02-2006 um 21:14 Uhr)
bloba ist offline   Mit Zitat antworten
Alt 01-02-2006, 21:07   #8 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
hab den sternchentext vergessen , hups
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.
shorty ist offline   Mit Zitat antworten
Alt 04-07-2007, 21:14   #9 (permalink)
I'M A CYBORG
 
Registriert seit: Apr 2007
Ort: ---------
Beiträge: 371
hallo bloba


ich erstelle eben ein karten spiel und hoffe das ich mit hilfe deines scripts
die karten ins bild fliegen lassen kann.

danke für deinen buildmatrix effect
speedhost
speedhost ist offline   Mit Zitat antworten
Alt 06-07-2007, 00:54   #10 (permalink)
Achim Math.PI
 
Benutzerbild von bloba
 
Registriert seit: Jul 2001
Ort: cool Colonia
Beiträge: 11.642
gern, lass ma was sehn
__________________
gruß bloba

2 x onkel² b_d
bloba 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:32 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele