Hey guys,
I'm directly embedding Flash files into Quiz pages and Lesson pages without using the Flash module because I'm using Flash 9 with ActionScript 3.0. The SWFs work fine in both Firefox and IE7 but in IE7 the SWFs always seem to get squashed to about 100 pixels in width.
I've checked the object and embed tags thoroughly and I can't find anything wrong there. Has anyone else had a similar rescaling problem with their SWFs?
Does anyone know why this is happening or how to fix it?
In reply to Matt Bury
This forum post has been removed
The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user
Re: Flash module add-on: Strange behaviour with Flash in IE7
by Matt Bury -
Hi Cathy,
Thanks for the advice.
I've tried your suggestions in various ways but I still keep getting the same result. It's ok in Firefox but distorted in IE7.
I also tried embedding it using Javascript, but that didn't work at all.
Any other ideas?
Hopefully,
Matt
Thanks for the advice.
I've tried your suggestions in various ways but I still keep getting the same result. It's ok in Firefox but distorted in IE7.
I also tried embedding it using Javascript, but that didn't work at all.
Any other ideas?
Hopefully,
Matt
In reply to Matt Bury
This forum post has been removed
The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user
Re: Flash module add-on: Strange behaviour with Flash in IE7
by Matt Bury -
I've solved it!
I used SWFObject, a JavaScript file that not only embeds the SWF for you very easily, it also gets around the 'click to activate' thing in IE7 because of the EOLAS court case.
You can download the latest version of SWFObject (open source of course!) from: http://blog.deconcept.com/swfobject
I set: Adminstration > Modules > Filters > Multimedia Plugins - Settings > Enable .swf filter to 'yes'.
I uploaded the JavaScript file 'swfobject.js' to my site, and noted the URL e.g. 'http://www.yoursite.com/scripts/swfobject.js'.
I also uploaded the SWF file 'test.swf' to my site, and noted the URL e.g. 'http://www.yoursite.com/media/test.swf'.
I created a new lesson in a course and created a branch table. On the first page I switched to HTML editing mode and entered the following code ONLY.
<script type="text/javascript" src="http://www.yoursite.com/scripts/swfobject.js"></script>
<div id="content">
To view the Flash content, please enable JavaScript in your browser.
</div>
<script type="text/javascript">
var so = new SWFObject("http://www.yoursite.com/media/test.swf", "test", "900", "480", "9", "#ffffff");
so.addParam("wmode", "transparent");
so.addVariable("age", "26");
so.write("content");
</script>
This works perfectly in both Firefox and IE7. You can find detailed notes and examples at http://blog.deconcept.com/swfobject about what the SWFObject(); parameters mean, but basically they're:
SWFObject(URL:String, id:String, width:String, height:String, version:String, background-colour:String)
You can find out more about the addParam function on the website.
I hope people find this helpful!
I used SWFObject, a JavaScript file that not only embeds the SWF for you very easily, it also gets around the 'click to activate' thing in IE7 because of the EOLAS court case.
You can download the latest version of SWFObject (open source of course!) from: http://blog.deconcept.com/swfobject
I set: Adminstration > Modules > Filters > Multimedia Plugins - Settings > Enable .swf filter to 'yes'.
I uploaded the JavaScript file 'swfobject.js' to my site, and noted the URL e.g. 'http://www.yoursite.com/scripts/swfobject.js'.
I also uploaded the SWF file 'test.swf' to my site, and noted the URL e.g. 'http://www.yoursite.com/media/test.swf'.
I created a new lesson in a course and created a branch table. On the first page I switched to HTML editing mode and entered the following code ONLY.
<script type="text/javascript" src="http://www.yoursite.com/scripts/swfobject.js"></script>
<div id="content">
To view the Flash content, please enable JavaScript in your browser.
</div>
<script type="text/javascript">
var so = new SWFObject("http://www.yoursite.com/media/test.swf", "test", "900", "480", "9", "#ffffff");
so.addParam("wmode", "transparent");
so.addVariable("age", "26");
so.write("content");
</script>
This works perfectly in both Firefox and IE7. You can find detailed notes and examples at http://blog.deconcept.com/swfobject about what the SWFObject(); parameters mean, but basically they're:
SWFObject(URL:String, id:String, width:String, height:String, version:String, background-colour:String)
You can find out more about the addParam function on the website.
I hope people find this helpful!