Question:

How do I add flash to a website with javascript or php?

by  |  earlier

0 LIKES UnLike

Hello,

I have used the source for my flash design:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>SCROLLROLL</title>

</head>

<body bgcolor="#ffffff">

<!--url's used in the movie-->

<!--text used in the movie-->

<!-- saved from url=(0013)about:internet -->

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-4... codebase="http://fpdownload.macromedia.c... width="550" height="400" id="ROLL" align="middle">

<param name="allowScriptAccess" value="sameDomain" />

<param name="movie" value="ROLL.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="ROLL.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="ROLL" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/g... />

</object>

</body>

</html>

each time, this code fails. I am getting fed up and frustrated because every page and book is telling me to do the same thing and it is not working. So I am wondering if their is a client or server side scripting solution.

 Tags:

   Report

1 ANSWERS


  1. I am not sure exactly what your problem is. But I personally have no interest in using the object and embed tags for embedding flash.

    I myself am using swfobject2 for embedding flash. It is the best way to do it, and newest. Using the &lt;embed /&gt; tag is outdated as it creates invalid code in xhtml. Not many people realize this yet, or are afraid they can&#039;t figure out how to use swfobject2. It is actually very easy, I use the dynamic method myself (it is the easiest -and don&#039;t even have to use the object tag -just assign a div an id and swfobject will replace that id&#039;d div&#039;s contents with the flash .swf content). For info on it here are a couple of links:

    On this first page there are 3 &quot;featured downloads&quot; on the right side, download them and unzip to your computer. You really only need the swfobject_2_1.zip, and the swfobject_generator_1_1_html.zip contains a page generator you can use locally instead of the online version if you wish. Go here:

    http://code.google.com/p/swfobject/

    And also see the documentation page for in-depth info here:

    http://code.google.com/p/swfobject/wiki/...

    Also there is an online page generator here(this is included in one of the zip folders):

    http://www.swffix.org/swfobject/generato...

    And then, to help you further understand how to use it, pipewerks.com has several examples you can check out here:

    http://pipwerks.com/lab/swfobject/

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions