Comunidad de diseño web y desarrollo en internet online

color de texto en action script

Citar            
MensajeEscrito el 07 Feb 2010 11:54 am
Hola amigos, le estoy haciendo una pagina a un amigo que tiene un criadero de Staffordshire Bull Terrier, le estoy haciendo una web ya que me encanta el diseño y como hobby me gusta hacer cosas para mis amigos, hace muchos años que ya no tocaba el tema y ahora me he kedado pillado

Bueno al lio, e conseguido un efecto para que el texto de la web aparezaca en formato "maquina de escribir ", hasta ahi de PM, la cuestion es que el texto en el efecto nos sale en negro y el fondo de la pagina es negro y queria canviar el texto a color blanco dejo os dejo el codigo del flash y del AS y si alguien amablemente puede ayudarme lo agradeceria mucho.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Este es el codigo del archivo flash

mystring = " aki va el parrafo de texto de la pagina";
// --
var myformat:TextFormat = new TextFormat();
myformat.font = 'Viner Hand ITC';
myformat.size = 14;
myformat.align = 'justify';

// --
_root.createTextField("mytext", 1, 20, 20, 460, 200);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.setNewTextFormat(myformat);
// --
var tpw:Typewriter = new Typewriter(mytext, mystring, 20);
____________________________________________________________________________________-

Este es el codigo del AS

import mx.utils.Delegate;
class Typewriter {
private var interval:Number;
private var string:String;
private var speed:Number;
private var textfield:TextField;
private var index:Number;
public function Typewriter (textfield:TextField, string:String, speed:Number) {
this.textfield = textfield;
this.string = string;
this.speed = speed;
index = 0;
interval = setInterval(Delegate.create(this, exec), this.speed);
}
private function exec() {
this.textfield.text = this.string.substr(0, index);
index++;
if (index > this.string.length) {
clearInterval(interval);
}
}
}

Por dj_magris

3 de clabLevel



 

firefox
Citar            
MensajeEscrito el 12 Feb 2010 05:02 pm
myformat.color = 0xFFFFFF; // valor hexadecimal para blanco

Por gabynufe

Claber

446 de clabLevel



 

México, D.F.

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.