Comunidad de diseño web y desarrollo en internet online

Detalle con un textinput en as3

Citar            
MensajeEscrito el 19 Jul 2009 10:29 pm
Saludos a todos, tengo una inquietud...
me gustaría saber cómo puedo con actionscript 3.0, al momento de dar click en un componente textinput se muestre un mensaje o se ejecute un evento.
Muchas gracias por la atencion, toda respuesta me será de utilidad.

Por Daniel Montalvo

5 de clabLevel



 

firefox
Citar            
MensajeEscrito el 20 Jul 2009 11:00 am
Hola, Aquí te pongo un ejemplo:

Código ActionScript :

import fl.controls.TextInput;
import flash.events.FocusEvent;

var textInput:TextInput = new TextInput();
textInput.addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addChild(textInput);

function focusInHandler(e:FocusEvent):void
{
   trace("Seleccionado");
}

Por isidoro

Claber

498 de clabLevel

2 tutoriales

Genero:Masculino  

firefox
Citar            
MensajeEscrito el 25 Jul 2009 01:41 am
Muchas gracias me funcionó perfectamente...! :)

Por Daniel Montalvo

5 de clabLevel



 

firefox

 

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