Hi Miguel.

See FAQ #1 and the examples there on how to get a 100% swf displaying on all
browsers (the example make the swf encompass the whole screen, but the
theory is the same in regards to the css required to get it to display in FF
etc)

http://code.google.com/p/swfobject/wiki/faq

Basically, set a css value for height as 100% for the div you will be
replacing with the swf file and set your swf w/h = 100% as well. Set the
fixed css w/h of the 470px on a parent div:


<html>
<head>
<style type="text/css" media="screen">
#parent { width:470px; height:470px; }
#myContent { height:100%; }
#myAlternativeContent { /* style alt content */ }
</style>
<script type="text/javascript" src="
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/swfobject.js
"></script>
<script type="text/javascript">
swfobject.embedSWF("
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test6.swf";,
"myContent", "100%", "100%", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="parent">
<div id="myContent">
<div id="myAlternativeContent">
Alternative content
</div>
</div>
</div>
</body>
</html>


Cheers,
Aran



On Thu, Oct 20, 2011 at 9:39 AM, Shapper <[email protected]> wrote:

> Hello,
>
> I have a DIV with 470px.
> I need to display the Flash object in this DIV.
> I don't know the width or height of the Flash movie.
>
> My idea would be:
>
> 1 - If the Flash movie width is less than 470px then:
>      Display the Flash movie with the original dimensions.
>
> 2 - If the Flash movie width is greater than 470px then:
>      Scale the width to 470px and keep proportion with height.
>
> I have been trying a few changes in width and height (px, %, ...).
>
> However, usually the Flash movie disappears ...
>
> Thank You,
> Miguel
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/swfobject/-/_xMGTDgP65oJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to