PDA

View Full Version : Help me out with embed code please monkeybrainz


vosgien
07-09-2003, 10:46 AM
Hi,

Decided not to post in your thread in case people thought you had an answer and didn't look !
in tutorialLoader.php i've embedded the tutorialPlayer.swf

Sorry that I cannot answer your Q monkeybrainz, however you may be able to help me out, I have been searching for the correct code and syntax to embed an swf in a php file, I have tried variations on the <EMBED> tags in html, but no joy.
basically I have a php set up like this:
[PHP]
<?
include("connect.php")
//code to grab vars from another web page
//insert them in to db &
//code to send email
[B]//here I need the code to embed and swf[B/]
?>

Hope you ( or anybody else ) can help me out a bit here.

Cheers

Vosgien

monkeybrainz
07-09-2003, 04:16 PM
hiya vosgien
embedding a swf in a php file is no different than putting one in an html page :) . you just have have to watch your quotation marks:<?php
include("connect.php")
//code to grab vars from another web page
//insert them in to db &
//code to send email
echo "here is my flash movie";
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
echo 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="600">';
echo '<param name="movie" value="myFlashMovie.swf">';
echo '<param name="quality" value="high"><param name="LOOP" value="false">';
echo '<embed src="myFlashMovie.swf" width="800" height="600" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
echo '</object>';
?>
is this what you are asking? hope it helps :)
-mb

vosgien
07-09-2003, 04:21 PM
Hi,
Thanks for that, I should have reposted ' cos what I did ( that gets the same result) is embed my php in the Flash html file using the php tags <? ?> after the html code, it works fine as does your code ( just tested )
Thanks for replying, have you got problem sorted yet ?

Vosgien

monkeybrainz
07-09-2003, 04:49 PM
glad you got it :)
i believe i may have just found a solution in the macromedia developer pages (thought it's not mac compliant :()! i'm going to try it out now :D