Flashvars problem in IE7 IE6 with swfobject 2.2

21 views
Skip to first unread message

k Guleesh

unread,
Jul 5, 2009, 9:13:21 PM7/5/09
to SWFObject
please look at this example I have made.
http://dev.simply.tv/static


The example works if I use swfobject 2.1 but breaks with 2.2 in IE7
and IE6

Has anybody else noticed flashvars broken in 2.2 ?

here is the flex app:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
applicationComplete="onCreation()"
>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function onCreation():void
{
if(Application.application.parameters.playlist_id != null)
{
var playlist_id = Application.application.parameters.playlist_id;
Alert.show("PLAYLIST ID = "+playlist_id);
}
else
{
Alert.show("NO FLASHVARS");
//var s = ExternalInterface.call("getFlashvars");
//trace(s)
}
}
]]>
</mx:Script>
</mx:Application>



here is the html :

<html>

<head>

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript" src="swfaddress.js"></script>

<script type="text/javascript">

// <![CDATA[

var flashvars = {



playlist_id : "25618049001"



};

var params = {

scale: "noscale",

AllowScriptAccess: "sameDomain",

allowFullscreen: "true",

bgcolor : "#222222"

};

var attributes = {

id: "swf_div",

name: "swf_div"

};



swfobject.embedSWF('FlashvarsTest.swf', "swf_div", "826", "350",
"9.0.115","expressInstall.swf", flashvars, params, attributes);

// ]]>

</script>

</head>

<body>

<div id="swf_div">

</div>



</body>

</html>



Aran Rhee

unread,
Jul 5, 2009, 10:10:35 PM7/5/09
to swfo...@googlegroups.com
So do the test suite files work for you in IE6 / 7 ?
 
 
specifically:
 
Dynamic publishing params test:
 
Static publishing params test:
 
 
FYI - Before we release anything into the wild, we test builds with a wide range of browsers, and we did not see any errors with Flashvars. You are the first person to report this potential issue (and I would have thought we'd have a lot more people complaining if 2.2 broke something as basic as flashvars :)
 
 
How are you testing in IE6/7? do you have actual installs or are you using something like Tredosoft multiple IE or browsershots.org etc?
 
 
Aran

k Guleesh

unread,
Jul 6, 2009, 4:38:25 AM7/6/09
to SWFObject
Indeed - I am surprised no else has reported anything and am willing
to accept that this may be down to something very stupid that I'm
doing - what raised the alarm bell for me was that changing only the
swfobject version to 2.1 made the flashvars work.

The Dynamic publishing test link you provided does work - so now I'm
really confused.
Could this be a flex / swfobject issue ?

I have tested this in 3 ways on 3 machines

machine 1 - windows XP SP2 IE6
machine 2 - windows XP SP3 IE7.0.5730.13
machine 3 - windows XP SP3 IETester (buggy test app with a bunch of IE
ActiveX plugins IE5.5 IE6 IE7 IE8)

It fails on all 3 setups in IE6 and IE7.

I am wondering what happens if people visit my test link - does it
work for them ? - and if there could possibly be an issue with the way
Flex loads the vars.

I didn't think for a minute that swfobject was released without
testing - that is why I am very surprised by what I'm seeing here.

In the mean time I have concocted an ExternalInterface call to pull in
the flashvars object as a workaround - but I figured this needed
reporting.

On Jul 6, 3:10 am, Aran Rhee <aran.r...@gmail.com> wrote:
> So do the test suite files work for you in IE6 / 7 ?
>
> http://code.google.com/p/swfobject/wiki/test_suite
>
> specifically:
>
> Dynamic publishing params test:http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_...
>
> Static publishing params test:http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_params.html
>
> FYI - Before we release anything into the wild, we test builds with a wide
> range of browsers, and we did not see any errors with Flashvars. You are the
> first person to report this potential issue (and I would have thought we'd
> have a lot more people complaining if 2.2 broke something as basic as
> flashvars :)
>
> How are you testing in IE6/7? do you have actual installs or are you using
> something like Tredosoft multiple IE or browsershots.org etc?
>
> Aran
>

k Guleesh

unread,
Jul 6, 2009, 7:48:37 AM7/6/09
to SWFObject
So did you actually click on this link ?
http://dev.simply.tv/static/

I would like to know if it displays a PLAYLIST ID or does is say NO
FLASHVARS when viewed in IE6 or IE7 -

Just because one test in the test_suite works - that doesn't exclude
the possibility of a bug. Just means you may have to write a better
test.

One issue that you haven't answered - why does changing it to
swfobject 2.1 (and leaving everything else the same) work in IE7 IE6 ?



On Jul 6, 9:38 am, k Guleesh <k.s.gule...@googlemail.com> wrote:
> Indeed - I am surprised no else has reported anything and am willing
> to accept that this may be down to something very stupid that I'm
> doing - what raised the alarm bell for me was that changing only the
> swfobject version to 2.1 made theflashvarswork.
>
> The Dynamic publishing test link you provided does work - so now I'm
> really confused.
> Could this be a flex / swfobject issue ?
>
> I have tested this in 3 ways on 3 machines
>
> machine 1 - windows XP SP2 IE6
> machine 2 - windows XP SP3 IE7.0.5730.13
> machine 3 - windows XP SP3 IETester (buggy test app with a bunch of IE
> ActiveX plugins IE5.5 IE6 IE7 IE8)
>
> It fails on all 3 setups in IE6 and IE7.
>
> I am wondering what happens if people visit my test link - does it
> work for them ? - and if there could possibly be an issue with the way
> Flex loads the vars.
>
> I didn't think for a minute that swfobject was released without
> testing - that is why I am very surprised by what I'm seeing here.
>
> In the mean time I have concocted an ExternalInterface call to pull in
> theflashvarsobject as a workaround - but I figured this needed
> reporting.
>
> On Jul 6, 3:10 am, Aran Rhee <aran.r...@gmail.com> wrote:
>
> > So do the test suite files work for you in IE6 / 7 ?
>
> >http://code.google.com/p/swfobject/wiki/test_suite
>
> > specifically:
>
> > Dynamic publishing params test:http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_...
>
> > Static publishing params test:http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_params.html
>
> > FYI - Before we release anything into the wild, we test builds with a wide
> > range of browsers, and we did not see any errors withFlashvars. You are the
> > first person to report this potential issue (and I would have thought we'd
> > have a lot more people complaining if 2.2 broke something as basic as
> >flashvars:)
>
> > How are you testing in IE6/7? do you have actual installs or are you using
> > something like Tredosoft multiple IE or browsershots.org etc?
>
> > Aran
>
> > On Mon, Jul 6, 2009 at 11:13 AM, k Guleesh <k.s.gule...@googlemail.com>wrote:
>
> > > please look at this example I have made.
> > >http://dev.simply.tv/static
>
> > > The example works if I use swfobject 2.1 but breaks with 2.2 in IE7
> > > and IE6
>
> > > Has anybody else noticedflashvarsbroken in 2.2 ?
>
> > > here is the flex app:
>
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application
> > >        xmlns:mx="http://www.adobe.com/2006/mxml"
> > >        layout="absolute"
> > >        applicationComplete="onCreation()"
>
> > >        <mx:Script>
> > >                <![CDATA[
> > >                        import mx.controls.Alert;
> > >                        private function onCreation():void
> > >                        {
>
> > >  if(Application.application.parameters.playlist_id != null)
> > >                                {
> > >                                        var playlist_id =
> > > Application.application.parameters.playlist_id;
> > >                                        Alert.show("PLAYLIST ID =
> > > "+playlist_id);
> > >                                }
> > >                                else
> > >                                {
> > >                                        Alert.show("NOFLASHVARS");
> > >                                        //var s =
> > > ExternalInterface.call("getFlashvars");
> > >                                        //trace(s)
> > >                                }
> > >                        }
> > >                ]]>
> > >        </mx:Script>
> > > </mx:Application>
>
> > > here is the html :
>
> > > <html>
>
> > > <head>
>
> > > <script type="text/javascript" src="swfobject.js"></script>
>
> > > <script type="text/javascript" src="swfaddress.js"></script>
>
> > > <script type="text/javascript">
>
> > > // <![CDATA[
>
> > > varflashvars= {
>
> > >        playlist_id : "25618049001"
>
> > > };
>
> > > var params = {
>
> > >        scale: "noscale",
>
> > >        AllowScriptAccess: "sameDomain",
>
> > >        allowFullscreen: "true",
>
> > >        bgcolor : "#222222"
>
> > > };
>
> > > var attributes = {
>
> > >        id: "swf_div",
>
> > >        name: "swf_div"
>
> > > };
>
> > > swfobject.embedSWF('FlashvarsTest.swf', "swf_div", "826", "350",
> > > "9.0.115","expressInstall.swf",flashvars, params, attributes);

Rostislav Hristov

unread,
Jul 6, 2009, 7:50:04 AM7/6/09
to SWFObject
Different people have reported such an issue with SWFAddress 2.3.

You can use SWFAddress 2.2 or the SVN copy that seems to work
correctly.

If you go with the SVN copy then please update both your JS and AS
files.

You can download them at http://swfaddress.svn.sourceforge.net/viewvc/swfaddress/trunk/swfaddress/dist/


-Rostislav

Getify Solutions, Inc.

unread,
Jul 6, 2009, 8:30:10 AM7/6/09
to swfo...@googlegroups.com
I see a playlist ID in IE7 on winXP SP3.

--Kyle




--------------------------------------------------
From: "k Guleesh" <k.s.g...@googlemail.com>
Sent: Monday, July 06, 2009 6:48 AM
To: "SWFObject" <swfo...@googlegroups.com>
Subject: Re: Flashvars problem in IE7 IE6 with swfobject 2.2

k Guleesh

unread,
Jul 6, 2009, 8:52:21 AM7/6/09
to SWFObject
Indeed swfaddress 2.3 only works with swfobject 2.1 in IE7 and IE6
and
swfobject 2.2 works with swfaddress 2.2 and not swfaddress 2.3 or 2.3
latest trunk in IE7 and IE6

I guess it's up to developers which way they go.

I guess you could argue that the bug is in swfobject - or you could
argue that the bug is in swfaddress. Is it nigh on impossible to test
compatibility between libs ? possibly. . . .
The fact is there are many people who must use swfaddress and
swfobject together so perhaps this needs to be mentioned in known
issues on both projects ?

If I get some time I will try and discover what is breaking
compatibility. . . don't hold your breath though - I can think of more
interesting things to do ;)

Thanks for the help with tracking this down.



On Jul 6, 12:50 pm, Rostislav Hristov <rostislav.hris...@gmail.com>
wrote:
> Different people have reported such an issue with SWFAddress 2.3.
>
> You can use SWFAddress 2.2 or the SVN copy that seems to work
> correctly.
>
> If you go with the SVN copy then please update both your JS and AS
> files.
>
> You can download them athttp://swfaddress.svn.sourceforge.net/viewvc/swfaddress/trunk/swfaddr...
>
> -Rostislav
>
> On Jul 6, 11:38 am, k Guleesh <k.s.gule...@googlemail.com> wrote:
>
> > Indeed - I am surprised no else has reported anything and am willing
> > to accept that this may be down to something very stupid that I'm
> > doing - what raised the alarm bell for me was that changing only the
> > swfobject version to 2.1 made theflashvarswork.
>
> > The Dynamic publishing test link you provided does work - so now I'm
> > really confused.
> > Could this be a flex / swfobject issue ?
>
> > I have tested this in 3 ways on 3 machines
>
> > machine 1 - windows XP SP2 IE6
> > machine 2 - windows XP SP3 IE7.0.5730.13
> > machine 3 - windows XP SP3 IETester (buggy test app with a bunch of IE
> > ActiveX plugins IE5.5 IE6 IE7 IE8)
>
> > It fails on all 3 setups in IE6 and IE7.
>
> > I am wondering what happens if people visit my test link - does it
> > work for them ? - and if there could possibly be an issue with the way
> > Flex loads the vars.
>
> > I didn't think for a minute that swfobject was released without
> > testing - that is why I am very surprised by what I'm seeing here.
>
> > In the mean time I have concocted an ExternalInterface call to pull in
> > theflashvarsobject as a workaround - but I figured this needed
> > reporting.
>
> > On Jul 6, 3:10 am, Aran Rhee <aran.r...@gmail.com> wrote:
>
> > > So do the test suite files work for you in IE6 / 7 ?
>
> > >http://code.google.com/p/swfobject/wiki/test_suite
>
> > > specifically:
>
> > > Dynamic publishing params test:http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_...
>
> > > Static publishing params test:http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_params.html
>
> > > FYI - Before we release anything into the wild, we test builds with a wide
> > > range of browsers, and we did not see any errors withFlashvars. You are the
> > > first person to report this potential issue (and I would have thought we'd
> > > have a lot more people complaining if 2.2 broke something as basic as
> > >flashvars:)
>
> > > How are you testing in IE6/7? do you have actual installs or are you using
> > > something like Tredosoft multiple IE or browsershots.org etc?
>
> > > Aran
>
> > > On Mon, Jul 6, 2009 at 11:13 AM, k Guleesh <k.s.gule...@googlemail.com>wrote:
>
> > > > please look at this example I have made.
> > > >http://dev.simply.tv/static
>
> > > > The example works if I use swfobject 2.1 but breaks with 2.2 in IE7
> > > > and IE6
>
> > > > Has anybody else noticedflashvarsbroken in 2.2 ?
>
> > > > here is the flex app:
>
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <mx:Application
> > > >        xmlns:mx="http://www.adobe.com/2006/mxml"
> > > >        layout="absolute"
> > > >        applicationComplete="onCreation()"
>
> > > >        <mx:Script>
> > > >                <![CDATA[
> > > >                        import mx.controls.Alert;
> > > >                        private function onCreation():void
> > > >                        {
>
> > > >  if(Application.application.parameters.playlist_id != null)
> > > >                                {
> > > >                                        var playlist_id =
> > > > Application.application.parameters.playlist_id;
> > > >                                        Alert.show("PLAYLIST ID =
> > > > "+playlist_id);
> > > >                                }
> > > >                                else
> > > >                                {
> > > >                                        Alert.show("NOFLASHVARS");
> > > >                                        //var s =
> > > > ExternalInterface.call("getFlashvars");
> > > >                                        //trace(s)
> > > >                                }
> > > >                        }
> > > >                ]]>
> > > >        </mx:Script>
> > > > </mx:Application>
>
> > > > here is the html :
>
> > > > <html>
>
> > > > <head>
>
> > > > <script type="text/javascript" src="swfobject.js"></script>
>
> > > > <script type="text/javascript" src="swfaddress.js"></script>
>
> > > > <script type="text/javascript">
>
> > > > // <![CDATA[
>
> > > > varflashvars= {
>
> > > >        playlist_id : "25618049001"
>
> > > > };
>
> > > > var params = {
>
> > > >        scale: "noscale",
>
> > > >        AllowScriptAccess: "sameDomain",
>
> > > >        allowFullscreen: "true",
>
> > > >        bgcolor : "#222222"
>
> > > > };
>
> > > > var attributes = {
>
> > > >        id: "swf_div",
>
> > > >        name: "swf_div"
>
> > > > };
>
> > > > swfobject.embedSWF('FlashvarsTest.swf', "swf_div", "826", "350",
> > > > "9.0.115","expressInstall.swf",flashvars, params, attributes);

k.s.guleesh

unread,
Jul 6, 2009, 1:00:09 PM7/6/09
to swfo...@googlegroups.com
Thanks for testing it Kyle -

you may have caught it at the moment I changed to using swfaddress 2.2 -
I have changed it back to use swfaddress 2.3

It should be broken again now.

Getify Solutions, Inc.

unread,
Jul 6, 2009, 1:02:05 PM7/6/09
to swfo...@googlegroups.com
Indeed, get "No flashvars" now.

--Kyle




--------------------------------------------------
From: "k.s.guleesh" <k.s.g...@googlemail.com>
Sent: Monday, July 06, 2009 12:00 PM
To: <swfo...@googlegroups.com>

Aran Rhee

unread,
Jul 6, 2009, 7:17:20 PM7/6/09
to swfo...@googlegroups.com
@k Guleesh - Thanks for the persistence to work out what was actually the use case to reproduce. It makes our life a lot easier in finding possible fixes.
 
I have added a issue entry for this now: http://code.google.com/p/swfobject/issues/detail?id=338
 
@Rostislav - let me know what you would like to do in order to look into the SWFObject 2.2 + SWFAddress 2.3 incompatibility. I am happy to set up some test cases etc to try to work through what is actually going on.
 
 
Cheers,
Aran

Rostislav Hristov

unread,
Jul 7, 2009, 4:26:52 AM7/7/09
to SWFObject
Hi Aran,

SWFAddress requires a hidden IFRAME for IE and in 2.3 I changed the
way it's created.

In previous versions I used the DOM method appendChild() but in order
to avoid another issue I switched to modifying the body.innerHTML
property.

This resulted in various unpleasant problems like this one with the
FlashVars and was recently reverted to another DOM based approach.

In general if someone does something like the above using innerHTML it
can break such features in swfobject.


Best,
Rostislav


On Jul 7, 2:17 am, Aran Rhee <aran.r...@gmail.com> wrote:
> @k Guleesh - Thanks for the persistence to work out what was actually the
> use case to reproduce. It makes our life a lot easier in finding possible
> fixes.
>
> I have added a issue entry for this now:http://code.google.com/p/swfobject/issues/detail?id=338
>
> @Rostislav - let me know what you would like to do in order to look into the
> SWFObject 2.2 + SWFAddress 2.3 incompatibility. I am happy to set up some
> test cases etc to try to work through what is actually going on.
>
> Cheers,
> Aran
>
> On Tue, Jul 7, 2009 at 3:02 AM, Getify Solutions, Inc. <get...@gmail.com>wrote:
>
>
>
>
>
> > Indeed, get "No flashvars" now.
>
> > --Kyle
>
> > --------------------------------------------------
> > From: "k.s.guleesh" <k.s.gule...@googlemail.com>
> > Sent: Monday, July 06, 2009 12:00 PM
> > To: <swfo...@googlegroups.com>
> >  Subject: Re: Flashvars problem in IE7 IE6 with swfobject 2.2
>
> > > Thanks for testing it Kyle -
>
> > > you may have caught it at the moment I changed to using swfaddress 2.2 -
> > > I have changed it back to use swfaddress 2.3
>
> > > It should be broken again now.
>
> > > On Mon, 2009-07-06 at 07:30 -0500, Getify Solutions, Inc. wrote:
> > >> I see a playlist ID in IE7 on winXP SP3.
>
> > >> --Kyle
>
> > >> --------------------------------------------------
> > >> From: "k Guleesh" <k.s.gule...@googlemail.com>

Aran Rhee

unread,
Jul 7, 2009, 8:05:15 AM7/7/09
to swfo...@googlegroups.com
@Rostislav
 
Ok, thanks for the info. Is there a official release build of SWFAddress which uses the new DOM method, or is it still in SVN only? (it would be great to be able to point to a FAQ / download for users)
 

Aran

Rostislav Hristov

unread,
Jul 9, 2009, 4:46:48 AM7/9/09
to SWFObject
@Aran
It's still SVN only. It should become official in about a month.
Reply all
Reply to author
Forward
0 new messages