[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

how to adjust flash movie width automatically according to browser width

Posted on 2017-08-02
6
Medium Priority
?
58 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
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 viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

649 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