Estoy tratando de crear un efecto de maquina de escribir y tengo un script en el que coloco el texto y le puedo dar formato para mostrarlo, el problema es que necesito establecer el alto y el ancho de ese texto, pero no doy con como hacerlo.
Aca dejo el codigo, espero alguien me pueda ayudar
Código ActionScript :
// texto = "Lorem ipsum dolor sit amet, orci at, feugiat nonummy. Ipsum eget tristique ea suspendisse aliquam, elementum et, consequat aliquam libero libero bibendum ut, wisi tincidunt aliquam, parturient id magna. Est fusce odio commodo sit. Rutrum nec duis sit ut diam aliquam, penatibus officiis et placerat quam lectus. Sem nunc non venenatis suspendisse, euismod magnis vel ante fusce, maecenas fermentum nec faucibus consequat. Lorem ut, ut cum condimentum dolore eu convallis libero, magna tincidunt lacus erat, cursus porta cupiditate quis volutpat sit, vitae commodo eleifend blandit. Neque ornare vel libero sapien nunc.Lorem ipsum dolor sit amet, orci at, feugiat nonummy. Ipsum eget tristique ea suspendisse aliquam, elementum et, consequat aliquam libero libero bibendum ut, wisi tincidunt aliquam, parturient id magna. Est fusce odio commodo sit."; // var myformat:TextFormat = new TextFormat(); myformat.font = 'Verdana'; myformat.size = 10; myformat.align = 'justify'; myformat.color = 423687; // velocidad = 90; margiz = 10; margder = 10; alto = Stage.height; margentotal = margiz+margder; _root.createTextField("mytext", 1, margiz, margder, Stage.width-margentotal, alto); mytext.multiline = true; mytext.wordWrap = true; mytext.setNewTextFormat(myformat); // var tpw:Typewriter = new Typewriter(mytext, texto, velocidad);