hello, i’m doing a portfolio website and i want to update it by database (mysql) so i’m using php + flash + mysql.
i found the actionscript text effect tutorial in this website and i can apply to the loaded var from database by defining the textvariable o i putted this:
myvar = new LoadVars();
myvar.load(‘http://localhost/personal/a.php’);
myvar.onLoad = function(loaded) {
if (loaded){
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;
i’m defining the variable “texto” in the php file without any problem, everything is ok but when i run the movie, the text variable keep undefined until i press “Enter” (while the movie its running) then the variable is defined… i dont know what to do… i tryied putting all the variables inside the loaded brakets and didnt work and tryied putting “text=”";" before the load file but didnt work either…
i dont know what to do…
Any help please? i really need it…
thank you