Quote:
|
Originally Posted by alaios
|
Here's the PHP
PHP Code:
if ($_REQUEST['option']) { ?>
<object src="last2frames.swf"..... ></object>
<?php } else { ?>
<object src="whole-movie.swf"..... ></object>
<?php } ?>
Just put that where in the markup you want the flash to appear.
You *could* use the same method to pass arguments to the flash, such as:
Code:
src="movie.swf?full=true"
in the object tag for the main one. Then
Code:
src="movie.swf?full=false"
for the last frame option. You would then have ad actionscript to take the query string and choose the current frame depending on that value.
I've done it that way before and it's a pain in the butt.
Far easier just to make a second .swf which only contains the end bit.