www.webdeveloper.com
Results 1 to 3 of 3

Thread: Embed a swf file

  1. #1
    Join Date
    Sep 2005
    Location
    That shadow behind you? It's not the cat. Mwahaha
    Posts
    386

    Embed a swf file

    I've got a swf file embeded like so:
    HTML Code:
    <object width="550" height="400">
    <param name="movie" value="file.swf">
    <embed src="file.swf" width="550" height="400">
    </embed>
    </object>
    And although it's a game, not a movie, I'm only going off of what I found with a google search. When I embed it like this, it gets white bars on the sides. I could just change the size, but the filename is being picked dynamically via PHP. Is there some way I could change the white bars to black? Or even better, transparent?

  2. #2
    Join Date
    Feb 2005
    Posts
    1,018
    Code:
    <object type="application/x-shockwave-flash" data="file.swf" width="550" height="400">
    <param name="movie" value="file.swf">
    <param name="scale" value="exactfit">
    If you are reading this it means you don't have flash player installed. Get it <a href="http://www.adobe.com/go/gntray_dl_getflashplayer" target="_blank">here</a>
    </object>

  3. #3
    Join Date
    Sep 2005
    Location
    That shadow behind you? It's not the cat. Mwahaha
    Posts
    386
    Thanks!~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles