art-d-sign
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 01.03.2004, 19:02   #1
TP-Moderator
 
Benutzerbild von Madokan
 
Registriert seit: Oct 2002
Ort: Berlin/Germany
Madokan bringt sich richtig ein
Post

Feldmatrix Formen


Hi Folks,

Hier was zum rum spielen - vorsicht wer zu viele Formen setzt der setzt der Performance kräftigt zu hierbei wäre ein _quality = "LOW" zu empfehlen.

Version Quadrat

PHP-Code:
MovieClip.prototype.setMatrix = function (pClippReihenpSpaltepDimpDistpFarbepAlphapAbstandpMaxpMinpMultpFraktion) {
    var 
tiefe;
    for (var 
0i<pReiheni++) {
        for (var 
0j<pSpaltej++) {
            
this[pClip] = this.createEmptyMovieClip(pClip+j+"_"+itiefe++);
            
with (this[pClip]) {
                
beginFill(pFarbepAlpha);
                
moveTo(-pDim, -pDim);
                
lineTo(pDim, -pDim);
                
lineTo(pDimpDim);
                
lineTo(-pDimpDim);
                
lineTo(-pDim, -pDim);
                
_x Math.round(i*((2*pDim)+pDist)+Stage.width/2-((pReihen-1)*((2*pDim)+pDist)/2));
                
_y Math.round(j*((2*pDim)+pDist)+Stage.height/2-((pSpalte-1)*((2*pDim)+pDist)/2));
            }
            
this[pClip].onEnterFrame = function() {
                
this.abstX this._x-_root._xmouse;
                
this.abstY this._y-_root._ymouse;
                
this.abstand Math.sqrt((this.abstX*this.abstX)+(this.abstY*this.abstY));
                if (
this.abstand<pAbstand) {
                    
this.dimX pMax-this.abstand;
                    
this.dimY pMax-this.abstand;
                } else {
                    
this.dimX pMin;
                    
this.dimY pMin;
                }
                
this.skalX = ((this.dimX-this._xscale)*pMult)+(this.skalX*pFraktion);
                
this.skalY = ((this.dimY-this._yscale)*pMult)+(this.skalY*pFraktion);
                
this._xscale += this.skalX;
                
this._yscale += this.skalY;
            };
        }
    }
}


this.setMatrix("feld"101010100xffff0025200250100 ,.36.75);


this.createEmptyMovieClip("mc",100);
this.mc.setMatrix("feld"101010100xff000025200250100 ,.36.90); 

-----

Version Kreise (gefüllt)

PHP-Code:
MovieClip.prototype.setMatrix = function (pClippReihenpSpaltepDimpDistpFarbepAlphapAbstandpMaxpMinpMultpFraktion) {
    var 
tiefe;
    for (var 
0i<pReiheni++) {
        for (var 
0j<pSpaltej++) {
            
this[pClip] = this.createEmptyMovieClip(pClip+j+"_"+itiefe++);
            
with (this[pClip]) {
                
moveTo(0,-1);
                
lineStyle(20pFarbepAlpha);
                
lineTo(00);                
                
_x Math.round(i*((2*pDim)+pDist)+Stage.width/2-((pReihen-1)*((2*pDim)+pDist)/2));
                
_y Math.round(j*((2*pDim)+pDist)+Stage.height/2-((pSpalte-1)*((2*pDim)+pDist)/2));
            }
            
this[pClip].onEnterFrame = function() {
                
this.abstX this._x-_root._xmouse;
                
this.abstY this._y-_root._ymouse;
                
this.abstand Math.sqrt((this.abstX*this.abstX)+(this.abstY*this.abstY));
                if (
this.abstand<pAbstand) {
                    
this.dimX pMax-this.abstand;
                    
this.dimY pMax-this.abstand;
                } else {
                    
this.dimX pMin;
                    
this.dimY pMin;
                }
                
this.skalX = ((this.dimX-this._xscale)*pMult)+(this.skalX*pFraktion);
                
this.skalY = ((this.dimY-this._yscale)*pMult)+(this.skalY*pFraktion);
                
this._xscale += this.skalX;
                
this._yscale += this.skalY;
            };
        }
    }
}


this.setMatrix("feld"101010100xffff0025200250100 ,.36.75);


this.createEmptyMovieClip("mc",100);
this.mc.setMatrix("feld"101010100xff000025200250100 ,.36.90); 
-----

Version Kreis (Umriss)

PHP-Code:
MovieClip.prototype.setMatrix = function (pClippReihenpSpaltepDimpDistpFarbepAlphapAbstandpMaxpMinpMultpFraktion,pSchritte) {
    var 
tiefe;
    for (var 
0i<pReiheni++) {
        for (var 
0j<pSpaltej++) {
            
this[pClip] = this.createEmptyMovieClip(pClip+j+"_"+itiefe++);
            
with (this[pClip]) {
                
moveTo(pDim0);                
                
lineStyle(0.1pFarbepAlpha);                
                for (var 
k=0k<=45k++) {
                    
radiant k*pSchritte/180*Math.PI;
                    
pX Math.cos(radiant)*pDim;
                    
pY Math.sin(radiant)*pDim;
                    
lineTo(pXpY);
                }                
                
_x Math.round(i*((2*pDim)+pDist)+Stage.width/2-((pReihen-1)*((2*pDim)+pDist)/2));
                
_y Math.round(j*((2*pDim)+pDist)+Stage.height/2-((pSpalte-1)*((2*pDim)+pDist)/2));
            }
            
this[pClip].onEnterFrame = function() {
                
this.abstX this._x-_root._xmouse;
                
this.abstY this._y-_root._ymouse;
                
this.abstand Math.sqrt((this.abstX*this.abstX)+(this.abstY*this.abstY));
                if (
this.abstand<pAbstand) {
                    
this.dimX pMax-this.abstand;
                    
this.dimY pMax-this.abstand;
                } else {
                    
this.dimX pMin;
                    
this.dimY pMin;
                }
                
this.skalX = ((this.dimX-this._xscale)*pMult)+(this.skalX*pFraktion);
                
this.skalY = ((this.dimY-this._yscale)*pMult)+(this.skalY*pFraktion);
                
this._xscale += this.skalX;
                
this._yscale += this.skalY;
            };
        }
    }
}

// Kreise


this.setMatrix("feld"5510100x0000ff25200250100 ,.36.758);


this.createEmptyMovieClip("mc",100);
this.mc.setMatrix("feld"5510100xff000025200250100 ,.36.908); 
Sterne

PHP-Code:
// Sterne

this.setMatrix("feld"5510100x0000ff25200250100 ,.36.75100);


this.createEmptyMovieClip("mc",100);
this.mc.setMatrix("feld"5510100xff000025200250100 ,.36.90100); 
Polygone

PHP-Code:

this
.setMatrix("feld"5510100x0000ff25200250100 ,.36.75300);


this.createEmptyMovieClip("mc",100);
this.mc.setMatrix("feld"5510100xff000025200250100 ,.36.90300); 
Viel Spass - be inspired!

Download wie immer unter:
http://www.flashstar.de/tutlist/

Liebe Grüsse
Matze K.

Geändert von Madokan (02.03.2004 um 12:43 Uhr).
Madokan ist offline   Mit Zitat antworten


Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Flash > Sammlung Actionscript 1 und 2
Feldmatrix Formen Feldmatrix Formen
« Schneefall (mit Liegenbleiben) | Unicode / UTF8 Decoder »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 14:56 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67