OK, I understand, but what about flash?
Lets come back to our flash example. If you want to execute the function say_hello_to_flash(), you just have to construct a string with the value like the function name.
So in the first frame we write the following actionscript:
my_func_name = say_hello_to_flash;and then send the string to myscript.php:
loadVariablesNum(myscript.php, 0, GET);Now, PHP will receive the string my_func_name. To call the function you have to construct the function call using the flash string:
That the basic idea, I used this method developing a quiz app. The function names were:
check_user, send_question, show_summary etc.Cao
|» Level Advanced|
Rating: 4.92 Votes: 103
|Mirza Hatipovic is freelance developer based in Bosnia and Hercegovina. He uses PHP, Flash, ColdFusion and XML to create dynamic web content.|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|