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

TheKungFuHunter

New Member
Hello,<br />
<br />
I have used the source for my flash design<br />
<br />
<html xmlns="http//www.w3.org/1999/xhtml" xmllang="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)aboutinternet --><object classid="clsidd27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" 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/go/getflashplayer" /></object></body></html><br />
<br />
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.<br />
I know it is missing the top header, I did not cut and paste it all. )<br />
each time I load it, I get a blank screen, I do not get any flash at all (<br />
 

JeffE

New Member
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 <embed /> tag is outdated as it creates invalid code in xhtml. Not many people realize this yet, or are afraid they can't figure out how to use swfobject2. It is actually very easy, I use the dynamic method myself (it is the easiest -and don't even have to use the object tag -just assign a div an id and swfobject will replace that id'd div's contents with the flash .swf content). For info on it here are a couple of links
On this first page there are 3 "featured downloads" 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/documentation

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

http//www.swffix.org/swfobject/generator/

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/
 
Top