{lang: 'de'}
Flashhilfe.de - Flash Community

Thema: Prototype

Beiträge zum Thema "Prototype"
 
 Seite1 2 3 4 5 6
Benutzerbild von Madokan

Prototype: Number.prototype.runden_nat [Flash 8]
23.04.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: number, prototype
Runden (Kurzfassung) // -------------------------------------------------------------------- // Number.prototype.runden (round - shortversion) // // Definition: zahl.runden(Rundungsmodus, DezimalZeichen, Genauigkeit) // // pModus - Rundungsm [...]
Benutzerbild von Madokan

Prototype: Number.prototype.runden [Flash 8]
23.04.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: number, prototype
Runden (Round) von Zahlen mit drei Modis // -------------------------------------------------------------------- // Number.prototype.runden // // Definition: zahl.runden(Rundungsmodus, DezimalZeichen, Genauigkeit) // // pModus - Rundungsmodu [...]
Benutzerbild von Madokan

Prototype: Date.getFirstDayOfMonth [Flash 8]
09.01.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: date, prototype
Erster Tag im Monat // Erster Tag im Monat Date.prototype.getFirstDayOfMonth = function() { return ; } ASSetPropFlags(Date.prototype, "getFirstDayOfMonth", 1, true); // Verwenden datum = new Date(); ersterTag = datum.getFirstDayO [...]
Benutzerbild von Madokan

Prototype: Date.getQuarterOfYear [Flash 8]
09.01.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: date, prototype
Quartal im Jahr // Quartal im Jahr Date.prototype.getQuarterOfYear = function() { return Math.floor(this.getMonth()/ 3)+1; } ASSetPropFlags(Date.prototype, "getQuarterOfYear", 1, true); // Verwenden datum = new Date(); trace(" [...]
Benutzerbild von Madokan

Prototype: Date.getMonthName [Flash 8]
09.01.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: date, prototype
Monatsnamen (Bezeichnung) // Monat (Bezeichnung) Date.prototype.getMonthName = function(pMonat) { return } ASSetPropFlags(Date.prototype, "getMonthName", 1, true); // Verwenden datum = new Date(); monat = datum.getMonth(); a [...]
Benutzerbild von Madokan

Prototype: Date.getDayName [Flash 8]
09.01.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: date, prototype
Wochentag (Bezeichnung) // Wochentag (Bezeichnung) Date.prototype.getDayName = function(pTag) { return } ASSetPropFlags(Date.prototype, "getDayName", 1, true); // Verwenden datum = new Date(); wochentag = datum.getDay(); // H [...]
Benutzerbild von Madokan

Prototype: Date.getLeapYear [Flash 8]
09.01.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: date, prototype
Ermitteln von Schaltjahren // Schaltjahr Date.prototype.getLeapYear = function() { return ((new Date(this.getFullYear(), 2, 0).getDate()) == 29 ? 1 : 0); }; ASSetPropFlags(Date.prototype, "getLeapYear", 1, true); // Verwenden da [...]
Benutzerbild von Madokan

Prototype: Date.getPeriodOfYearHemisphere [Flash 8]
09.01.2005 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: date, prototype
Jahreszeiten (Nord/Süd-Halbkugel) // Jahreszeiten für die nördliche und südliche Hemisphere Date.prototype.getPeriodOfYearHemisphere = function(pSphere) { var monat = this.getMonth()+1; var tag = this.getDate(); if (pSphere) [...]
Benutzerbild von Kai Jansen

Prototype: Array.copy [Flash 8]Kopiert ein Array Array.prototype.copy = function() { return this.slice(0, this.length); } ASSetPropFlags(Array.prototype,"copy" , 1, true); ; zweites_array = erstes_array.copy(); erstes_array.splice(0,2); trace("erstes_array = " + erstes_ [...]
Benutzerbild von Sebastian

Prototype: Number.roundTo [Flash 8]Zahl aufrunden nach x Number.prototype.roundTo = function(stellen) { var d = Math.pow(10,stellen); return Math.round(this * d) / d; } zahl = 213.545; trace(zahl.roundTo(2)); // 213.55
Benutzerbild von Madokan

Prototype: Array.prototype.arrayToVar [Flash 8]
30.10.2004 - 5 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: Array, prototype
Array Elemente in Variablen überführen. // Array in Variablen umwandeln Array.prototype.arrayToVar = function(varname) { if (varname == undefined) varname = "variable"; for (var i = 0; i < this.length; i++) { _root; [...]
Benutzerbild von Madokan

Prototype: String.prototype.stringToArray [Flash 8]
30.10.2004 - 2 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: prototype, String
Zeichenketteninhalt in ein Array überführen. // Zeichenkette in Array - inspired by Sebastian String.prototype.stringToArray = function(trennzeichen) { if (trennzeichen == undefined) trennzeichen = ","; return this.split(trennzeichen) [...]
Benutzerbild von Madokan

Prototype: String.prototype.stringToVar [Flash 8]
30.10.2004 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Madokan
Schlagwörter: prototype, String
Zeichenketteninhalte in Variablen ablegen // Zeichenkette in Variablen umwandeln String.prototype.stringToVar = function(varname,trennzeichen) { if (varname == undefined) varname = "variable"; if (trennzeichen == undefined) trennzeichen = ","; [...]
Benutzerbild von umlart

Prototype: Math.precision [Flash 8]
20.10.2004 - 1 Kommentar - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - umlart
Schlagwörter: math, prototype
Wert auf Dezimalstellen runden //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+ Math.precision (value, decimalPlaces) //+ //+ returns the given value rounded to specified decimal places //+++++++++++++++++++++++++++++ [...]
Benutzerbild von Kai Jansen

Prototype: getPhoneticPassword [Flash 8]Phonetisches Passwort generieren function getPhoneticPassword (pwdLen : Number) : String { /* Based on a ColdFusion-Script by Michael Hnat. Translated to ActionScript 2.0 by Kai Jansen. Modified by Kai Jansen. */ // get absolute Number [...]
Benutzerbild von Madokan

Prototype: Movieclip.leseTiefen [Flash 8]Hiermit können die belegten Tiefen ausgegeben werden // leseTiefen Funktion // - pMax bis zu welcher Tiefe soll analysiert werden // - Gibt die belegten Tiefen aus + MocieClip Namen MovieClip.prototype.leseTiefen = function(pMax) { var liste [...]
Benutzerbild von Sebastian

Prototype: Key.onEnterDown / onEnterUp [Flash 8]
19.07.2004 - 2 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - Sebastian
Schlagwörter: key, prototype
Event Handler für die Enter Taste // onEnter onEnterListener = {}; onEnterListener.onKeyDown = function() { if(Key.getCode() == Key.ENTER) { Key.broadcastMessage("onEnterDown"); } } onEnterListener.onKeyUp = function() { if(Key.get [...]
Benutzerbild von markus_n

Prototype: Key.onEnterDown / onEnterUp v2 [Flash 8]Event Handler für die Enter Taste // 'onEnterListener'- Objekt erstellen und als Event-Quelle freigeben: onEnterListener = {}; ASBroadcaster.initialize(onEnterListener); // Methoden u. Eigenschaften als Event-Quelle ueberpruefen: /* ASSetPr [...]
Benutzerbild von Kai Jansen

Prototype: stristr (Original) [Flash 8]Sucht das erste Vorkommenn eins Strings oder eines ASCII Codes RETURN: Restsring String.prototype.stristr = function (needle) { var str = this.toUpperCase(); index = (typeof(needle) == "string") ? str.indexOf(needle.toUpperCase()) : str.indexOf [...]
Benutzerbild von Kai Jansen

Prototype: Array.indexOf [Flash 8]Gibt den ersten vorkommenden Index in einem Array zurück Array.prototype.indexOf = function (s) { var index = -1; for (var i in this) { if (this == s) { index = i; } } index = (isNaN(index)) ? index : Number(index); return inde [...]
Benutzerbild von Sandman_2k

Prototype: String.nreplace [Flash 8]Das n-te Zeichen eines Strings wird durch übergebenes Zeichen ersetzt String.prototype.nreplace = function(pos, repchar) { return (this.substring(0, pos-1).concat(repchar, this.substring(pos, this.length))); }; ASSetPropFlags(String.prototyp [...]
abgemeldeter Benutzer
Prototype: duplicate TextField [Flash 8]TextField.duplicate() TextField.prototype.duplicate = function (instanceName:String, depth:Number) { this._parent.createTextField(instanceName, depth, this._x, this._y, this._width, this._height); this._parent.setNewTextFormat(this.getTextFo [...]
abgemeldeter Benutzer
Prototype: Array.addDim & Array.delDim [Flash 8]
25.05.2004 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - .cYe
Schlagwörter: Array, prototype
Helferchen zur Arbeit mit mehrdimensionalen Arrays. // addDim fuegt ein oder mehrere Werte in einer neuen Dimension eines Arrays hinzu Array.prototype.addDim = function() { var arg, std = (arguments.length==1)? arguments : 0; for(var [...]
Benutzerbild von MoD

Prototype: removeTags [Flash 8]
30.04.2004 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - MoD
Schlagwörter: prototype, String
Entfernt alle Tags aus einem String (XML-Variante) //FLASH5-VERSION string.prototype.removeTags=function() { var stringAsXML=new XML(this); var ACTUALnode=stringAsXML.firstChild; var DOstepNum=0; var DONEstep; var DONEsearching=false; [...]
Benutzerbild von ToBSn

Prototype: Color.FadeBrightness [Flash 8]
15.04.2004 - 0 Kommentare - Forum, Tipps & Tricks zu Flash, Flex und Adobe AIR - ToBSn
Schlagwörter: color, prototype
erzeugt einen \"glowartigen\" Fade Color.prototype.changebrightness = function($brightness) { var $transform = this.getTransform(); with ($transform) { rb = gb=bb=$brightness; } this.setTransform($transform); }; MovieClip.prototype.fad [...]
 Seite1 2 3 4 5 6
Partner Webseiten: art-and-law.de  Mediengestalter.info   phpwelt.de   Scubacube.de  
Haftungsausschluss   Datenschutzerklärung   Impressum
© 1999-2024 Sebastian Wichmann - Flashhilfe.de