Estoy construyendo una clase pero tengo un problema con una variable, la
clase estas así:
class autoComplete {
public var listadoCompleto:Array;
public var campoTextoStage:TextField;
private var x:Number;
private var y:Number;
private var listadoArray:Array;
var textoContenido:String;
var subString:String;
function autoComplete(){
trace("objeto creado");
this.listadoCompleto= Array();
}
public function setTextListener(textfield_txt:TextField){
textfield_txt.onChanged = function(textfield_txt:TextField) {
textoContenido=textfield_txt.text;
trace("New value is: "+textoContenido);
trace(this.listadoCompleto);
trace("___");
for (y=0;y<this.listadoCompleto.length; y++){
trace("a");
}
};
}
public function set listado(listadoA:Array){
this.listadoCompleto=listadoA;
trace("LL:: "+this.listadoCompleto);
}
public function set campoTexto(campoText:TextField){
this.campoTextoStage=campoText;
setTextListener(this.campoTextoStage);
}
}
En el metodo setTextListener no tengo acceso a la variable (array)
listadoCompleto, alguien sabe por que ? alguna sugerencia para hacerlo
mejor ?
Gracias por la ayuda
----------------------------------
ASNativos
www.5dms.com/listas
-----------------------------------