Blaney
unread,Jun 15, 2010, 11:02:23 AM6/15/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SWFObject
I'm having trouble with swf object working correctly in IE. More
specifically I want to have the width and height automatically conform
to the what the size of the window the user is viewing the swf in is.
In Firefox and other browsers; I simply have 100% in both the width
and height values. Here is the code:
<script type="text/javascript">
var flashvars = {}
var params = {
base: ".",
allowfullscreen: "true",
bgcolor: "#000000"
}
var attributes = {}
swfobject.embedSWF("slideshow.swf", "flashcontent", "100%", "100%",
"9.0.0", false, flashvars, params, attributes);
</script>
However, this percentage value makes the flash file not load at all in
IE[7]. In order to get it to work in IE I need to put pixel values.
Is there a way around this that does not involve actionscript? (I
don't have access to the original .fla file.
Thank you for all responses.
-Blaney