Prototype: Movieclip.simpleCircle [Flash 8]
| 20.07.2003, 11:54 | | Beiträge: 130 Wohnort: Berlin/Germany Registriert: Mar 2002
| Prototype: Movieclip.simpleCircle Einfacher Kreis mit lineTo()
Prototype:
ActionScript:1 2 3 4 5 6 7 8 9 10 11 | // Der Trick funtzt prima das lineTo() zu missbrauchen.
// Die Untergrenze für die Verschiebung liegt bei
// 0.14999999999999999.
MovieClip.prototype.simpleCircle = function(pobj, ptiefe, pX, pY, pDicke, pFarbe, pDeck) {
createEmptyMovieClip(pobj,ptiefe);
this[pobj]._x = pX;
this[pobj]._y = pY;
this[pobj].lineStyle(pDicke, pFarbe, pDeck);
this[pobj].lineTo(0, 0.15);
};
|
Beispiel Aufruf:
ActionScript:1 2 | // Verwenden
this.simpleCircle("mc",1,100,100,100,0xff0000,100);
|
[Flashstar]
http://www.flashstar.de | |
| | Themen Ähnliche Beiträge zum Thema | 13.01.2010 - Stachlbeere 12.10.2009 - Starfoxfs 07.12.2009 - ole4 16.02.2010 - Anubis667 |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
Regeln & Bedingungen
|