Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2005, 12:00
White_Devi
 
Fecha de Ingreso: noviembre-2002
Ubicación: http://localhost/
Mensajes: 195
Antigüedad: 21 años, 5 meses
Puntos: 1
(novato) ayuda porfavor con este script

hola,soy un novato en flash y tengo un problema que espero que me ayuden por favor..

yo consegui un script de actionscript en internet para hacer un efecto de texto dinamico de manera que yo solo tengo que definir la variable y este le agrega el efecto, la idea es hacer diferentes archivos swf para ir incluyendolos a medida que vaya entrando a ciertos links y cada uno con el mismo efecto pero con diferentes textos.

Ahora, el problema es que las variables originales dicen:

Código:
text = "There is only one state- admittedly an unusual state, but not one that can be stigmatized as pathological- in which it does not do this (ego maintains clear and sharp lines of demarcation). At the height of being in love the boundary between ego and object threatens to melt away. Against all the evidence of his senses, a man who is in love declares that 'I' and 'you' are one, and is prepared to behave as if it were a fact.   --(S. Freud)"

nXstart = 1
nYstart = 15
_root.char._visible = false
nLength = length(text)
nKerning = 12
nLLength = 24
nChars = 0
nLNumber = 1
nLSpace = 20
ii = 0
entonces quiero que el valor de la variable lo lea de la base de datos asi que lo cambie por esto:
Código:
datos_php = new LoadVars();
datos_php.load('http://localhost/personal/a.php');
datos_php.onLoad = function(cargado) {
	if (cargado){
	  text=this.texto;
	}
};
nXstart = 1
nYstart = 15
_root.char._visible = false
nLength = length(text)
nKerning = 12
nLLength = 24
nChars = 0
nLNumber = 1
nLSpace = 20
ii = 0
en el archivo a.php defino la variable texto el cual la lee de la base de datos mysql pero por alguna razon ese codigo no funciona :S creo que es qeu se pierde el valor porque cuando hago "trace(text);" me devuelve "undefined" asi que supongo que tengo que volverlo un valor global o algo asi... alguna ayuda por favor???

gracias
__________________
http://www.ingenierosinc.com