Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/09/2010, 15:12
Milen
 
Fecha de Ingreso: octubre-2008
Mensajes: 81
Antigüedad: 15 años, 6 meses
Puntos: 3
Respuesta: Ayuda con Archivo Flash y PHP

Hola, yo cuando quiero una variable, utilizo un archivo txt:

Código AS3:
Ver original
  1. var loader:URLLoader=new URLLoader();
  2. loader.dataFormat=URLLoaderDataFormat.VARIABLES;
  3. loader.load(new URLRequest("tuarchivo.txt"));//tu archivo txt donde guardas asi: nombredevariable=valordevariable
  4.  
  5. loader.addEventListener(Event.COMPLETE,carga);
  6. txt.addEventListener(Event.ENTER_FRAME, doit);
  7.  
  8.  
  9. function carga(event:Event){
  10.     txt.autoSize = "left"; 
  11.     txt.multiline = true;  
  12.     txt.wordWrap = false;      
  13.     txt.text = loader.data.nombredevariable;
  14.     limite= 0-txt.width;
  15. }

A ver si te sirve, ciao!

Última edición por Milen; 05/09/2010 a las 15:23