Soyez le premier à donner votre avis sur cette source.
Vue 11 646 fois - Téléchargée 2 144 fois
String.prototype.writeBevel = function(x, y, tintColor) { delete _root.darkTf; delete _root.lightTf; delete _root.normTf; //------------------------------------------------------ monFormat = new TextFormat(); monFormat.font = "arial"; monFormat.size = 22; monFormat.type = "static"; //------------------------------------------------------ _root.createTextField("darkTf", 1, x+1, y+1, 255, 30); _root.darkTf.text = this; _root.darkTf.setTextFormat(monFormat); _root.darkTf.textColor = "0x000000"; _root.darkTf.selectable = false; _root.darkTf.autoSize = true; //------------------------------------------------------ _root.createTextField("normTf", 3, x+0, y+0, 255, 30); _root.normTf.text = this; _root.normTf.setTextFormat(monFormat); _root.normTf.textColor = tintColor; _root.normTf.selectable = false; _root.normTf.autoSize = true; //------------------------------------------------------ _root.createTextField("lightTf", 2, x-1, y-1, 255, 30); _root.lightTf.text = this; _root.lightTf.setTextFormat(monFormat); _root.lightTf.textColor = "0xaaaaaa"; _root.lightTf.selectable = false; _root.lightTf.autoSize = true; };
20 mai 2003 à 12:08
M'ci Black Wizzard !
19 mai 2003 à 18:27
Pour un texte predefinie ::
t = "hello world"
t.writeBevel(100, 200, "0x006699");
19 mai 2003 à 10:07
Et si oui, comment stp ?!!
11 mai 2003 à 22:46
9 mai 2003 à 16:51
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.