The 'Print' StatementThe data that the flash movie will eventually read is placed using 'print' statements. For an example of how print statements are used, refer to the file named: scriptA.php. Also note that all print statements in the script will be read at the same time. It's easy to make the mistake of thinking that you can control the actions of the flash movie according to the placement of a print statement. For example, in the sample files, I have it set up so that the 'loading' variable is set to 'NO' at the end of the script. If the script contained more commands after this print statement, they would also be included in the data that gets sent to the flash movie. In addition, if I put the line at the beginning of the script, it would really make no apparent difference to the output either.
|» Level Intermediate|
Rating: 8 Votes: 168
|Can be found at www.indivision.net.|
|Download the files used in this tutorial.|
|Download (6 kb)|
|More help? Search our boards for quick answers!|