02-15-2009, 11:50 AM
All I want to do is have one page with links to another page that has an embedded player on it so I can have the player controls. I know how to link straight to the swf but will no controls.
The first page will have a tree style menu with links to about 120 swf tutorial videos, the menu I can do.
What I can't get my head around is what do I put in the link (on the first page) to tell the player what video to play and what to put on the second page so the player knows what swf play.
I just want to organize my files to disc with an web page interface.
Any help would be good, I have be reading the web for the last month and now have brain fade.
Thanking you, Ken
02-16-2009, 09:51 AM
One of the easiest ways would be to have the first page with the links, and the second page can be a php (or any other kind of server language) file to accept a variable through the URL, and then it can output it into the embed code.
So page 1)
<a href="view.php?id=2.swf">View SWF 1</a>
And then on the view.php page you'd get the variable and just have it output into the embed code.
02-20-2009, 04:59 AM
Thanks Jeremy for your reply.
Could you please go into more detail about what to put on the second page.
02-20-2009, 09:33 AM
Assuming you have PHP it would be something like this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
swfobject.registerObject("swfplaceholder", "9.0.0", "expressInstall.swf"); // First parameter: name of Object ID, Second parameter: Minimum Flash version, Third Parameter:
<object id="swfplaceholder" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
<param name="movie" value="<?php echo $_GET['id']; ?>" />
<object type="application/x-shockwave-flash" data="<?php echo $_GET['id']; ?>" width="780" height="420">
<?php echo $_GET['id']; ?> is what gets the swf name from the URL as I put it above.
02-20-2009, 04:31 PM
Thank you for trying to help me, I 'm new to all this script stuff.
When you said "Assuming you have PHP" what did you mean. What I've read lately that has something to do with a server? What I want to do will not be go online but to disc so will what you are trying to teach me work on a disc?
02-21-2009, 11:07 AM
What I mean is that you have to find out if your hosting provider allows you to use PHP. Most do, some do not.
I think you might need to jump a little into PHP to understand what I'm talking about. There is a great tutorial video series here that can help.
02-22-2009, 07:08 AM
They were great tutorials, wish there were more like them.
I have realized that PHP is not the script that will do what I
e.g To put the pages and videos on to a dvd disc and use the functions
Do you know what script would do that?
02-22-2009, 09:57 AM
Oh...that would have been helpful to know up front.
Yes PHP won't work with CDs.