Tema: onLoad
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/05/2007, 05:54
negro81
 
Fecha de Ingreso: febrero-2007
Mensajes: 111
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: onLoad

el ambito de this.nom solo es el interior del onLoad, asi que si quieres utilizar ese valor fuera, asignale ese valor dentro del onLoad a una variable global.


form.onLoad = function()
{
_root.servidor_txt.htmlText = this.nom
}

o tambien por ejemplo

form.onLoad = function()
{
servidor_txt.htmlText = this.nom;
_root.variableglobal = this.nom;
}

o tambien por ejemplo

form.onLoad = function()
{
servidor_txt.htmlText = this.nom;
_global.variableglobal = this.nom;
}