Groups | Blog | Home
all groups > flash actionscript > june 2005 >

flash actionscript : another loadvar problem!!


SavageMessiah
6/9/2005 8:33:03 PM

I everyBody!! Im using Flash and PHP to get data from MySQL server.
have created a loadvars variable and i can get the data without an
problem. But what i want to do is make the manipulation of the dat
after the onload function IN THE SAME FRAME. I dunno if its possible
see my exemple (note: this code may have error synthaxe because i don
have my project with me right now, i just want to show you my logic):

#include script.asc

Boutton onRelease {


loadProfile(username);
Vtxtmessage = profile.username; <-----always undified because
think flash

execute the onload function at the end.
}

stop();


script.asc ///////////////////////////////////////////////////

function loadprofile(username) {

connect.onload = function () {
profile.username = this[username];
......blah blah blah
}

connect.sendandload (blah blah blah);

}

var connect = new loadvar();

---------------------------------------------------------------------
in other way i want to force flash to execute the onload functio
before the onRelaese function of the button is finish

i want to do this on that way beause we are two who works on thi
project but the .fla is almost donne and the other guys want me to d
function who return the data, is bevause of this i want to do this i
the same frame........if you have the solution please help me!

--
SavageMessia
-----------------------------------------------------------------------
SavageMessiah's Profile: http://www.highdots.com/forums/member.php?userid=22
View this thread: http://www.highdots.com/forums/showthread.php?t=150176
SavageMessiah
6/10/2005 1:06:44 PM

no one have an idea? :

--
SavageMessia
-----------------------------------------------------------------------
SavageMessiah's Profile: http://www.highdots.com/forums/member.php?userid=22
View this thread: http://www.highdots.com/forums/showthread.php?t=150176
AddThis Social Bookmark Button