Embedding flash object into a webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • atlkhan
    New Member
    • Apr 2007
    • 39

    Embedding flash object into a webpage

    I have a flash movie I want to include it in the webpage. How this can be done.
  • kestrel
    Recognized Expert Top Contributor
    • Jul 2006
    • 1071

    #2
    search flash embed in google, you'll get what you want

    Comment

    • steven
      New Member
      • Sep 2006
      • 143

      #3
      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

      • kestrel
        Recognized Expert Top Contributor
        • Jul 2006
        • 1071

        #4
        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

        • nomad
          Recognized Expert Contributor
          • Mar 2007
          • 664

          #5
          Originally posted by kestrel
          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]
          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.
          <embed src="somefilena me.swf" width="550" height="400">
          ie somefilename.sw f would be in your root dir.

          nomad

          Comment

          • kestrel
            Recognized Expert Top Contributor
            • Jul 2006
            • 1071

            #6
            Originally posted by nomad
            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.
            <embed src="somefilena me.swf" width="550" height="400">
            ie somefilename.sw f would be in your root dir.

            nomad
            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"

            Comment

            • nomad
              Recognized Expert Contributor
              • Mar 2007
              • 664

              #7
              Originally posted by kestrel
              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"
              Very 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

              • kestrel
                Recognized Expert Top Contributor
                • Jul 2006
                • 1071

                #8
                Originally posted by nomad
                Very 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.
                i try not to give out that info, but its SoCal

                Comment

                Working...