Jump to content

PHP, TPL and Embed Flash Movies?


davehardy

Recommended Posts

OK ive added a new .tpl page called destination.tpl.

<embed 
  src="lib/skins/eva/rotate/imagerotator.swf" 
  width="200" 
  height="200"
  allowscriptaccess="always" 
  allowfullscreen="false" 
  flashvars="file=lib/skins/eva/rotate/eva.xml&autostart=true&transition=fade" 
/>

The called it up on frontpage_main.tpl with....

	<h3>Our Destinations</h3>

<?php Template::Show('destination.tpl'); ?>

So why doesn't the movie show the images like this http://www.easternvirtualairways.com/eva/lib/skins/eva/rotate/rotator.html'>http://www.easternvirtualairways.com/eva/lib/skins/eva/rotate/rotator.html ?

Contents of the rotator.html

<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
	var s1 = new SWFObject("imagerotator.swf","rotator","185","185","0");
	s1.addParam("allowfullscreen","false");
	s1.addVariable("file","eva.xml");
	s1.addVariable("width","185");
	s1.addVariable("height","185");
	s1.addVariable("shownavigation","false");
	s1.write("container");
	s1.addParam('flashvars','&autostart=true&displayclick=none&icons=false&repeat=always&shuffle=true');
</script>

If you hover your mouse over the movie http://www.easternvirtualairways.com/eva/ you can see it showing 12 images available but they dont display :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...