[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to adjust flash movie width automatically according to browser width

Posted on 2017-08-02
6
Medium Priority
?
66 Views
Last Modified: 2017-08-02
Dear Experts,
I want to adjust my flash width automatically according to browser width, like we do with image width 100%
I'd like give the width %100 and height auto to fit the page, however it doesn't work.
how should I write it ? Below you can see the source code.. thank you

<object type="application/x-shockwave-flash" data="my.swf" width="1280" height="600">

Open in new window

0
Comment
Question by:Braveheartli
  • 4
  • 2
6 Comments
 
LVL 9

Expert Comment

by:Jim Riddles
ID: 42238910
Have you tried using CSS instead of the properties?  I can't guarantee it will work, but it may.
<object type="application/x-shockwave-flash" data="my.swf" style="width:100%; height:auto;">

Open in new window

0
 
LVL 1

Author Comment

by:Braveheartli
ID: 42238972
I already tried that :(
0
 
LVL 9

Accepted Solution

by:
Jim Riddles earned 2000 total points
ID: 42238990
Out of curiosity, are you wrapping the object inside a div?  If not, try wrapping the object in a div, and setting the div's properties to 100% width and auto height.  Also, be sure to set the width and height of your body tag.
<style>
body: { height: 100%; width:100%; }
.swf_container { height: auto; width: 100%; }
.swf_object { height: 100%; width: 100% }
</style>
<div class="swf_container">
  <object class="swf_object" type="application/x-shockwave-flash" data="my.swf" style="width:100%; height:100%;">
</div>

Open in new window

It would help if you could provide a link to your page so I could see the structure of your page.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:Braveheartli
ID: 42239982
Dear Jim Riddles,
thank you very much for your answers,

Normally it should work, but it doesn't working.

My entire page code is here :

<!doctype html>
<html>
<head>
<style>
body : { height: 100%; width:100%; }
.swf_container { height: auto; width: 100%; }
.swf_object { height: 100%; width: 100% }
</style>
<meta charset="utf-8">

<meta http-equiv="pragma" content="Cache">

<title>Title</title>

</head>

<body>
<div class="swf_container">
  <object class="swf_object" data="indirim.swf" style="width:100%; height:100%;">Alertnative Content Here</object>
</div>

</body>
</html>

Open in new window

0
 
LVL 1

Author Comment

by:Braveheartli
ID: 42239986
Dear Jim,
It's very close to what you said.
I found this link very helpful. thank you so much..

this link is very helpful
http://learnswfobject.com/advanced-topics/100-width-and-height-in-browser/
0
 
LVL 1

Author Closing Comment

by:Braveheartli
ID: 42239989
thank you
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question