Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/01/2011, 08:17
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 10 meses
Puntos: 310
Respuesta: Recuperar objeto de funciones distintas

Si son públicos sí. Ej:
Código Javascript:
Ver original
  1. function a(){
  2.  this.txt='texto';
  3. }
  4. function b(){}
  5. var x = new a(), y = new b();
  6. alert(y.str=x.txt);
Espero que te sirva.
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red