I have a flash movie I want to include it in the webpage. How this can be done.
Embedding flash object into a webpage
Collapse
X
-
Use swfobject http://blog.deconcept. com/swfobject/
This will also help you avoid having to deal with the horrid mish-mash of object and embed that many articles recommend. You will also get around the IE "feature bug" where you are required to click on flash content to activate it before you can interact with it.
All it requires is the javascript being inluded in the head of your html document and a few lines of simple js code that is shown on the website.Comment
-
that will work, but it can get complicated and confusing sometimes.
<embed> and <object> is a more simplified version, using specified tags for attributes
here is an example
[code=html]
<object width="550" height="400">
<param name="movie" value="somefile name.swf">
<embed src="somefilena me.swf" width="550" height="400">
</embed>
</object>
[/code]Comment
-
Also make sure when you upload your files that you have your .swf files in the same dir as you have stated in your code.Originally posted by kestrelthat will work, but it can get complicated and confusing sometimes.
<embed> and <object> is a more simplified version, using specified tags for attributes
here is an example
[code=html]
<object width="550" height="400">
<param name="movie" value="somefile name.swf">
<embed src="somefilena me.swf" width="550" height="400">
</embed>
</object>
[/code]
<embed src="somefilena me.swf" width="550" height="400">
ie somefilename.sw f would be in your root dir.
nomadComment
-
You can upload it into a different directory, if you must. Many people create /images/ directories and keep all their media there, pictures, and flash files. All you have to do then is chance your src to src="images/file.swf"Originally posted by nomadAlso make sure when you upload your files that you have your .swf files in the same dir as you have stated in your code.
<embed src="somefilena me.swf" width="550" height="400">
ie somefilename.sw f would be in your root dir.
nomadComment
-
Very True Kestrel, Most beginner don't understand that, so I made an example so that they upload the .swf file.Originally posted by kestrelYou can upload it into a different directory, if you must. Many people create /images/ directories and keep all their media there, pictures, and flash files. All you have to do then is chance your src to src="images/file.swf"
Lat.
nomad.
PS Kestrel what city do you live in. I also live in CA city La Habra.Comment
-
i try not to give out that info, but its SoCalOriginally posted by nomadVery True Kestrel, Most beginner don't understand that, so I made an example so that they upload the .swf file.
Lat.
nomad.
PS Kestrel what city do you live in. I also live in CA city La Habra.Comment
Comment