|
||||||||||||||||||||||
Welcome To NewFreeTemplates.com Flash Tutorials Area - Pass arguments to Flash movie from ASP or PHP
To pass parameters use query string after the name of SWF file. In the following example a query string was used:
<PARAM NAME="MOVIE" VALUE="t1039.swf?parameter1=123456789"> and <EMBED SRC="t1039.swf?parameter1=123456789"
To use a parameter in Flash movie follow the steps below:
Choose "File" > "Export HTML Page" to view a sample web page with the movie.
Drive the parameter with ASP or PHPAs you have the HTML code ready you can build the query string dynamically with ASP or PHP. ASP example: <PARAM NAME="MOVIE" VALUE="t1039.swf?parameter1=<% =asp_parameter %>"> PHP example: <PARAM NAME="MOVIE" VALUE="t1039.swf?parameter1=<? print($php_parameter); ?>"> Make the same changes to EMBED part of the Flash tag. Of course you have to run the HTML page through your web server so it can execute ASP or PHP code. Download source project t1039.zip
Author: www.flashdesignerzone.com
|
|
|||||||||||||||||||||
|
||||||||||||||||||||||
| All Rights Reserved 2007-2008 by NewFreeTemplates.com | ||||||||||||||||||||||