Needing help inserting a SWF File onto my webpage

Discussion in 'Graphics & Multimedia' started by YourAdrenalineFix, Jan 14, 2011.

  1. #1
    Hi everyone,

    I'm new here and this is my 1st post but I can tell this is going to be a great forum to be associated with and can't wait to be involved more.

    I am a complete newbie and I'm wanting to install a swf file on my site but can't seem to crack it so I was wanting to ask if someone could so kindly take a look and possibly advise?

    Also... This is a game BTW.

    If you take a look at my site here: (masked so my URL does not show up here in the SERP's) http://goo.gl/KswLQ you'll see a section of code (which I really don't know what any of it means) that looks like this:
    Okay... Well the problem is that nothing is displaying on the webpage and I uploaded the file maxDirtBike1withoutMTEx.swf to my "Support Files" folder of my server but nothing except the big gaping hole shows up on my webpage...

    If anyone could provide some help or suggestions on this I'd certainly be appreciative.

    Thanks a bunch in advance
     
    YourAdrenalineFix, Jan 14, 2011 IP
  2. nguyen_huy_hai

    nguyen_huy_hai Well-Known Member

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    There's no problem with your code, you should put the flash file in a folder, ex: "index/", then put the folder in the same director with the html file, so replace "maxDirtBike1withoutMTEx.swf" with "index/maxDirtBike1withoutMTEx.swf".
    I did it (with your code):
    http://www.mediafire.com/download.php?ae4btt3xbncmkg5
     
    nguyen_huy_hai, Jan 14, 2011 IP
  3. Piggy

    Piggy Active Member

    Messages:
    574
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    70
    #3
    index/ wouldn't be needed if the .swf file and the page that the code is on are both in the same folder (i.e. the index folder). But as nguyen said, your code is correct.

    Also, you said you're not sure what the code means. It's pretty simple, just check the tags on it.
    <object width: This is simply the width, in pixels, of the games display on your site.
    height: Same as above, except for height.
    <param name: This is the name of the parameter, which is movie. Most games take a "movie" param.
    value: conventionally this is exactly the same as the src name, or the name of the file on the server.
    <embed src: This tells the script where to find the actual file to display. the width and height are there in case the game isn't the same dimensions as your object, so that it stretches it to fit.
    Tags being preceded with a / (i.e. </embed>) simply stop that bit of code from happening anymore. It's like the last page of a chapter in a book, and the next page will start a new chapter, and won't have a /.
     
    Last edited: Jan 18, 2011
    Piggy, Jan 18, 2011 IP
  4. YourAdrenalineFix

    YourAdrenalineFix Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks everyone!!
     
    YourAdrenalineFix, Jan 19, 2011 IP
  5. nellee

    nellee Peon

    Messages:
    121
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You may take a look at this step by step guide, it will teach you how to Embed the FLV/SWF to HTML page
    Hope it helps
     
    nellee, Jan 19, 2011 IP
  6. jatrasmara

    jatrasmara Peon

    Messages:
    416
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i usually use default code that given by dreamweaver about insert swf file to my website, :)
     
    jatrasmara, Jan 26, 2011 IP
  7. Voynex

    Voynex Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Why not to use SWFObject or Voynex Object Embedding Library?
     
    Voynex, May 19, 2011 IP
  8. nellee

    nellee Peon

    Messages:
    121
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    How to embed SWF file into an HTML page?

    You can code the page like the following:
     
    nellee, May 25, 2011 IP
  9. Rothschild

    Rothschild Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It's just a piece of cake. Just check the path of the SWF if it is right, and check the SWF file on your web server if it is in the right directory.
     
    Rothschild, May 26, 2011 IP