how to adjust flash movie width automatically according to browser width

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

LVL 1
BRMarketingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim RiddlesPrepress/OMS SpecialistCommented:
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
BRMarketingAuthor Commented:
I already tried that :(
0
Jim RiddlesPrepress/OMS SpecialistCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

BRMarketingAuthor Commented:
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
BRMarketingAuthor Commented:
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
BRMarketingAuthor Commented:
thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.