Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2007, 17:34
Avatar de cplus
cplus
 
Fecha de Ingreso: abril-2007
Mensajes: 164
Antigüedad: 17 años
Puntos: 1
Como capturo el valor?

hola, como puedo capturar el valor

Código PHP:
    //user clicks select files button
    
public function browseClick(){
        
frWindow.content.feedback_txt.htmlText "";
            
checkLabelUploadBtn();

        
xx(fileRef.browse());
    }




public function 
xx(?????????????????){//necesito q llege aqui algo¿? para luego  hacer el if???
        
var listener:Object = new Object();
        
listener.onSelect = function(fileName:FileReference):Void {
            if (
fileName.type == ".swf") {
                
frWindow.content.feedback_txt.htmlText "<p align='center'>El tipo de fichero no esta permitido: Seleccione | *.rar | *.zip | *.ace | *.iso | *.bin | *.7z |";                        
                
trace("error tipo de archivo es swf");
            }
        }        

        var 
fileRef:FileReference = new FileReference();
        
fileRef.addListener(listener);    
    
    return 
trace("hola");


Última edición por cplus; 18/04/2007 a las 19:08