/    Sign up×
Community /Pin to ProfileBookmark

Embed a swf file

I’ve got a swf file embeded like so:

[code=html]
<object width=”550″ height=”400″>
<param name=”movie” value=”file.swf”>
<embed src=”file.swf” width=”550″ height=”400″>
</embed>
</object>
[/code]

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?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@_Aerospace_Eng_Oct 31.2006 — &lt;object type="application/x-shockwave-flash" data="file.swf" width="550" height="400"&gt;
&lt;param name="movie" value="file.swf"&gt;
&lt;param name="scale" value="exactfit"&gt;
If you are reading this it means you don't have flash player installed. Get it &lt;a href="http://www.adobe.com/go/gntray_dl_getflashplayer" target="_blank"&gt;here&lt;/a&gt;
&lt;/object&gt;
Copy linkTweet thisAlerts:
@AmazingAntauthorOct 31.2006 — Thanks!~
×

Success!

Help @AmazingAnt spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...