PDA

View Full Version : loadVars vs loadVariables vs loadVariablesNum



rflorico
June 20th, 2004, 07:35 AM
Good Day!
I am just starting to integrate flash with php and mysql, just want to ask which is best to use or which will you recommend me to use, loadVars, loadVariables or loadVariablesNum and why.

Thanks. :)

kill.robot.kill
June 20th, 2004, 12:31 PM
Definetely LoadVars.
LoadVars will take a couple extra lines of syntax to do what you want it to, but the result is well worth it. With LoadVars you have by far more control of what is being done with the information loaded, and the information being sent. Especially the info being sent. With loadVariables and loadVariablesNum when you sent the info to say a php file, ALL your variables got sent, that means your variables for your scroll bars, movieclip variables, everything. If you had a lot, and your users was on a dialup that could take quiet a while for all that info to get sent to the server causing your site to bog down. With LoadVars you control what variables get sent so instead of sending 20 vars you only send 3.
One last thing with receiving data, LoadVars has better checks as on the status of the information being loaded and completed.

Any tutorial that you find that uses loadVariables or loadVariablesNum can easily be converted to use LoadVars, if you get stuck just post it up here.

good luck