|
If you remember the line of ActionScript in your Flash Movie refers to a file called: PHPCounter.php This is the file you are about to create and that the Flash Movie actually reads. The Flash Movie does not read the previous text file which actually stores the count number. At first this may seem strange but I will explain why after we have looked at the PHP code. Flash can read information stored on-line but cannot write information to a remote server. To write data to a remote server (a place where web pages are stored) you need a server side scripting language. PHP is such a scripting language. PHP not only enables you to create Dynamic Content but enables it to be saved automatically so that next time that web page is viewed it not the same as the previous viewing but now contains the new information. Notice that we used "name" in our php script to reflect the variable in our Flash movie? If you change the variable name in our Flash move we also need to change the value in our php script. This tutorial gives you some basic information about PHP and how to setup PHP to work with Flash. Free Flash PHP Tutorial |
| w_w__w___.__j_av__a_2___s_.__c__om__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |