Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/09/2006, 18:15
Avatar de DarkskullDA
DarkskullDA
 
Fecha de Ingreso: julio-2006
Mensajes: 698
Antigüedad: 17 años, 9 meses
Puntos: 13
txt y variable

wenas haber si me puden ayudar es sencillo xD

cargo un txt asi:
Código:
texto1 = new LoadVars();
texto1.load("texto01.txt");
texto1.onLoad = function(){
titulo.html = true;
titulo.htmlText = texto1.titulo;
imagen1.text = texto1.imagen;
todo bien...
el problema es q quiero q el texto de imagen(del txt) se guarde en una varible pero no puedo :S!, al parecer si lo hago dentro del onloadfunciona pero no puedo usar esa varible por fuera en cualquier otrs script o lo q sea..

tonces no se q hacer, para guardar el texto de imagen en una varible
el archivo .txt esta asi :
Código:
&titulo=<a href="asfunction:texto1.load,texto02.txt"><i>Hola</i></a>&
&imagen=1.jpg&
saludos y grax ^^