/    Sign up×
Community /Pin to ProfileBookmark

Fit a Flash SWF File to Any Screen Size

Dear Everyone, I have an SWF in an HTML page that changes its width according to the browser size – I need the height to also adjust to varying screen sizes. I’ve tried height:100% and other specific instructions but nothing helps. I would greatly appreciate any ideas!

Thank you! Chava Drummond

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@cootheadAug 08.2012 — Hi there chavad,

the following basic code will give a full browser "swf"...
[color=navy]<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="utf-8">

<title>untitled document</title>

<style>
html,body {
height:100%;
margin:0;
}
#swf-holder {
height:100%;
}
#swf-holder object {
display:block;
width:100%;
height:100%;
}
</style>

</head>
<body>

<div id="swf-holder">
<object type="application/x-shockwave-flash" data="some.swf">
<param name="movie" value="some.swf">
</object>
</div>

</body>
</html>
[/color]

[i]coothead[/i]
Copy linkTweet thisAlerts:
@CalmanAug 10.2012 — Nice routine, many thanks for sharing!!

All the best,

Cal ?
Copy linkTweet thisAlerts:
@vgonzales11May 17.2016 — Well fancy meeting you here! ? Stumbled upon this while searching for answers. This works in Weebly! Only issue, I need the image full screen and to autostart (no play button) at load. Thoughts?
Copy linkTweet thisAlerts:
@vgonzales11May 17.2016 — Oh yeah! Link to what's happening: http://ggtdemo.weebly.com/

Well fancy meeting you here! Stumbled upon this while searching for answers. This works in Weebly! Only issue, I need the image full screen and to autostart (no play button) at load. Thoughts?
×

Success!

Help @chavad 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.13,
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,
)...