Hi Philip,

Thanks for your prompt reply. This forum is a great idea. I've read
the FAQ page you linked to and bookmarked it - very useful!

Re: #1 - I'll look into this one more, although since my code works
perfectly with SWFObject 2.0, I'm sceptical. I came across a similar
issue (with % width and height values) in Firefox a while ago when
upgrading from SWFObject 1.5 to 2.0. A few months later, the issue
seemed to have been resolved.

Re: #14 - I don't have any such extensions installed in Firefox.

Re: I'm curious... Let's see if I'm getting this right - I use dynamic
embedding as the primary method which overwrites the
"myAlternativeContent" div tag. If that fails for some reason then the
static content remains and you can still see embedded Flash. Since
this is a PHP script, it's very easy to switch either embed method on
or off to test it with various browsers with various settings. Since
this plugin is intended for use in various schools, colleges,
universities, companies, NGOs and govt. organisations, where they
often have strange restrictions on what users can and can't do, I need
a "foolproof" embed method.

Are you saying that I should only use static content? Please let me
know if I'm way off track!

@Kyle: Here's a link to my demo course where I've got the plugin
working with SWFObject 2.0 - http://matbury.com/moodle/course/view.php?id=9
(Login as a guest) Unfortunately, I can't use SWFObject 2.2 on this
site since it would prevent some of my user groups from accessing
Flash applications. You can view/download the SWF Activity Module and
FLV Player code from these Google Code project sites:

SWF Activity Module: http://code.google.com/p/swf-activity-module/

FLV Player: http://code.google.com/p/moodle-flv-player/

Thanks again for your help :)


On Jan 10, 10:57 pm, Philip Hutchison <[email protected]> wrote:
> hi matt
>
> swfobject 2.x has been thoroughly tested in firefox 2.x and 3.x.
>
> check out the FAQs to see if any apply to you (esp #1 and 
> #14)http://code.google.com/p/swfobject/wiki/faq
>
> i'm curious: why are you using both static publishing AND dynamic publishing
> for the same swf?  you should normally use one or the other, not both (using
> both is redundant and won't get you any extra functionality or
> compatibility).
>
> - philip
>
>
>
> On Sun, Jan 10, 2010 at 1:14 PM, Matt Bury <[email protected]> wrote:
> > Hi,
>
> > I'm developing a plugin module for an open source PHP learning
> > management system (Moodle) that leverages the JW FLV Player from
> > LongtailVideo.com. Previous versions have worked without any problems
> > with various versions of the player across IE, Chrome, Safari and
> > Firefox.
>
> > I've updated the SWFObject version from 2.0 to 2.2 and I've come
> > across this problem (SWFObject 2.2 doesn't work in Firefox 3.5).
> > Everthing is fine in all other browsers and I've tried switching
> > between SWFObject embed and "alternativeContent" embed which is just
> > bog standard HTML code. The alternative content, which is not
> > dependent on SWFObject, works.
>
> > Like I've said, everything works fine with SWFObject 2.0 and it's only
> > when I try 2.2 that things go wrong, so I tried opening the example
> > files that come in the swfobject.zip download package - index.html and
> > index_dynamic.html (both of which are dependent on SWFObject) - and
> > neither of them display the test.swf file in Firefox! Again, no
> > problems with the other browsers.
>
> > Is this a Firefox or a SWFObject bug? Does anyone know?
>
> > In case you're interested, here's an instance of the code my module
> > prints out:
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
> >www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml"; dir="ltr" lang="en"
> > xml:lang="en">
> > <head>
> >    <meta http-equiv="Content-Type" content="text/html;
> > charset=utf-8" />
> > <link rel="stylesheet" type="text/css" href="http://localhost/moodle19/
> > theme/standard/styles.php<http://localhost/moodle19/%0Atheme/standard/styles.php>"
> > />
> > <link rel="stylesheet" type="text/css" href="http://localhost/moodle19/
> > theme/standardwhite/styles.php<http://localhost/moodle19/%0Atheme/standardwhite/styles.php>"
> > />
> > <script type="text/javascript" src="http://localhost/moodle19/mod/flv/
> > swfobject/swfobject.js<http://localhost/moodle19/mod/flv/%0Aswfobject/swfobject.js>
> > "></script>
> >                <script type="text/javascript">
> >                        var flashvars = {};
> >                        flashvars.abouttext = "";
> >                        flashvars.aboutlink = "
> >http://www.longtailvideo.com/players/";;
> >                        flashvars.author = "";
> >                        flashvars.autostart = "false";
> >                        flashvars.backcolor = "ffffff";
> >                        flashvars.bufferlength = "1";
> >                        flashvars.captions = "
> >http://localhost/moodle19/file.php/13/xml/
> > trafalgar_festival_2008_2.xml<http://localhost/moodle19/file.php/13/xml/%0Atrafalgar_festival_2008_...>
> > ";
> >                        flashvars.client = "";
>
> >                        flashvars.controlbar = "bottom";
> >                        flashvars.description = "";
> >                        flashvars.date = "";
> >                        flashvars.displayclick = "play";
> >                        flashvars.file = "
> >http://localhost/moodle19/file.php/13/flv/
> > trafalgar_festival_2008.flv";
> >                        flashvars.frontcolor = "666666";
>
> >                        flashvars.icons = "true";
> >                        flashvars.id = "";
>
> >                        flashvars.item = "";
> >                        flashvars.lightcolor = "";
>
> >                        flashvars.mute = "false";
> >                        flashvars.playlist = "none";
> >                        flashvars.playlistsize = "180";
> >                        flashvars.plugins = "captions";
> >                        flashvars.quality = "true";
> >                        flashvars.repeat = "none";
> >                        flashvars.resizing = "true";
> >                        flashvars.screencolor = "";
> >                        flashvars.shuffle = "false";
>
> >                        flashvars.start = "0";
> >                        flashvars.state = "";
> >                        flashvars.streamer = "";
> >                        flashvars.stretching = "uniform";
> >                        flashvars.tags = "";
> >                        flashvars.title = "";
> >                        flashvars.tracecall = "";
> >                        flashvars.type = "video";
> >                        flashvars.version = "5.0";
> >                        flashvars.volume = "90";
>
> >                        var params = {};
> >                        params.play = "true";
> >                        params.loop = "true";
> >                        params.menu = "true";
> >                        params.quality = "best";
> >                        params.scale = "noscale";
> >                        params.salign = "tl";
> >                        params.wmode = "opaque";
> >                        params.bgcolor = "";
> >                        params.devicefont = "true";
> >                        params.seamlesstabbing = "true";
> >                        params.allowfullscreen = "true";
> >                        params.allowscriptaccess = "always";
> >                        params.allownetworking = "all";
> >                        var attributes = {};
> >                        attributes.align = "middle";
> >                        swfobject.embedSWF("
> >http://localhost/moodle19/mod/flv/jw/
> > player.swf", "myAlternativeContent", "900", "480", "9.0.115", "http://
> > localhost/moodle19/mod/flv/swfobject/expressInstall.swf", flashvars,
> > params, attributes);
> >                </script>
> > <!--[if IE 7]>
> >    <link rel="stylesheet" type="text/css" href="http://localhost/
> > moodle19/theme/standard/styles_ie7.css<http://localhost/%0Amoodle19/theme/standard/styles_ie7.css>"
> > />
> > <![endif]-->
> > <!--[if IE 6]>
> >    <link rel="stylesheet" type="text/css" href="http://localhost/
> > moodle19/theme/standard/styles_ie6.css<http://localhost/%0Amoodle19/theme/standard/styles_ie6.css>"
> > />
> > <![endif]-->
>
> >    <meta name="keywords" content="moodle, Development: Timed Text
> > Captions - Trafalgar Square Video " />
> >    <title>Development: Timed Text Captions - Trafalgar Square Video</
> > title>
> >    <link rel="shortcut icon" href="http://localhost/moodle19/theme/
> > standardwhite/favicon.ico<http://localhost/moodle19/theme/%0Astandardwhite/favicon.ico>"
> > />
> >    <!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(http://
> > localhost/moodle19/lib/csshover.htc);} /*]]>*/</style>-->
>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > javascript-static.js<http://localhost/moodle19/lib/%0Ajavascript-static.js>
> > "></script>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > javascript-mod.php <http://localhost/moodle19/lib/%0Ajavascript-mod.php>
> > "></script>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > overlib/overlib.js <http://localhost/moodle19/lib/%0Aoverlib/overlib.js>
> > "></script>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > overlib/overlib_cssstyle.js<http://localhost/moodle19/lib/%0Aoverlib/overlib_cssstyle.js>
> > "></script>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > cookies.js <http://localhost/moodle19/lib/%0Acookies.js>"></script>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > ufo.js <http://localhost/moodle19/lib/%0Aufo.js>"></script>
> > <script type="text/javascript" src="http://localhost/moodle19/lib/
> > dropdown.js <http://localhost/moodle19/lib/%0Adropdown.js>"></script>
>
> > <script type="text/javascript" defer="defer">
> > //<![CDATA[
> > setTimeout('fix_column_widths()', 20);
> > //]]>
> > </script>
> > <script type="text/javascript">
> > //<![CDATA[
> > function openpopup(url, name, options, fullscreen) {
> >    var fullurl = "http://localhost/moodle19"; + url;
> >    var windowobj = window.open(fullurl, name, options);
> >    if (!windowobj) {
> >        return true;
> >    }
> >    if (fullscreen) {
> >        windowobj.moveTo(0, 0);
> >        windowobj.resizeTo(screen.availWidth, screen.availHeight);
> >    }
> >    windowobj.focus();
> >    return false;
> > }
>
> > function uncheckall() {
> >    var inputs = document.getElementsByTagName('input');
> >    for(var i = 0; i < inputs.length; i++) {
> >        inputs[i].checked = false;
> >    }
> > }
>
> > function checkall() {
> >    var inputs = document.getElementsByTagName('input');
> >    for(var i = 0; i < inputs.length; i++) {
> >        inputs[i].checked = true;
> >    }
> > }
>
> > function inserttext(text) {
> >  text = ' ' + text + ' ';
> >  if ( opener.document.forms['theform'].message.createTextRange &&
> > opener.document.forms['theform'].message.caretPos) {
> >    var caretPos = opener.document.forms['theform'].message.caretPos;
> >    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) ==
> > ' ' ? text + ' ' : text;
> >  } else {
> >    opener.document.forms['theform'].message.value  += text;
> >  }
> >  opener.document.forms['theform'].message.focus();
> > }
>
> > function getElementsByClassName(oElm, strTagName, oClassNames){
> >        var arrElements = (strTagName == "*" && oElm.all)? oElm.all :
> > oElm.getElementsByTagName(strTagName);
> >        var arrReturnElements = new Array();
> >        var arrRegExpClassNames = new Array();
> >        if(typeof oClassNames == "object"){
> >                for(var i=0; i<oClassNames.length; i++){
> >                        arrRegExpClassNames.push(new RegExp("(^|\\s)" +
> > oClassNames
> > [i].replace(/\-/g, "\\-") + "(\\s|$)"));
> >                }
> >        }
> >        else{
> >                arrRegExpClassNames.push(new RegExp("(^|\\s)" +
> > oClassNames.replace(/
> > \-/g, "\\-") + "(\\s|$)"));
> >        }
> >        var oElement;
> >        var bMatchesAll;
>
> ...
>
> read more »
-- 
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