Aran,

You can download my bare bones example from <http://starpause.com/as3/
FlashvarDifference.zip>, it includes the dynamic21.html and
static21.html pages which demonstrate the difference.

using firebug my flashvars param looks like this for dynamic21.html

<param name="flashvars" value="configFile=/fragment.do?xmlPath=/us/en/
partners/index.xml&amp;amp;xslPath=/shared/xsl/pages/page-to-
hero.xsl&amp;amp;mode=simple&amp;amp;foo2=bar2"/>

and my flashvars param looks like this for static21.html

<param value="configFile=/fragment.do?xmlPath=/us/en/partners/
index.xml&amp;xslPath=/shared/xsl/pages/page-to-
hero.xsl&amp;mode=simple&amp;foo2=bar2" name="flashvars"/>

Comparing the two, it looks as if the dynamic publishing method
actually adds an extra 'amp;' for every '&amp;' it encounters.

To construct the flashvars for the dynamic publishing option I'm using
the 'add properties and values after its creation by using a dot
notation' method detailed here <http://code.google.com/p/swfobject/
wiki/documentation>

One strange thing is that I really only have one flashvar which is a
URL with '&amp;'s in it, but as I said this is something I can't
change and account for in my flash code. The real issue for me is why
I see the extra 'amp;' when using dynamic publishing with firefox.

Thanks again for any insight!


On Feb 18, 4:19 pm, "Aran Rhee" <[email protected]> wrote:
> Dynamic publishing SHOULD be writing the same Flashvars values as static in
> that the Dynamic publishing option ends up writing an object tag with the
> standard flashvar parameter.
>
> Can you use Firebug / IE developer toolbar to compare the rendered page
> code?
>
> Can you confirm exactly how you are constructing your flashvars for the
> dynamic publishing option. Are you passing name value pairs into the
> flashvars object, or are you passing a nested flashvars object (with all
> values in a querystring) in the parameters object?
>
> Perhaps if you could send a link to your page?
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of paus akid
> Sent: Thursday, 19 February 2009 5:40 AM
> To: SWFObject
> Subject: Are flashvar passed differently between dynamic and static
> publishing?
>
> I've run into an interesting discrepency beteween dynamic and static
> publishing when using swfobject to pass flashvar strings like
> "mode=simple&amp;foo2=bar2". Specifically: ie7 dynamic, ie7 static,
> and ff3 static publishing methods strip out 'amp;' from the flashvars,
> while ff3 dynamic publishing leaves the 'amp;' in place.
>
> I'm dealing with the '&amp;' because of a web application my swf is
> interfacing with (which I can not modify). I also know the ideal is to
> URI encode the flashvar string to clean up the '&' but I don't believe
> that would have any effect on the remaining 'amp'.
>
> Any insight regarding how swfobject is passing flashvars differently
> for ff3 dynamic publishing? Here are some traces from the example swf/
> html pages you can grab <http://starpause.com/as3/
> FlashvarDifference.zip>:
>
> ++++ ie7 dynamic
> xslPath: /shared/xsl/pages/page-to-hero.xsl
> foo2: bar2
> mode: simple
>
> ++++ ie7 static
> xslPath: /shared/xsl/pages/page-to-hero.xsl
> mode: simple
> foo2: bar2
>
> ++++ ff3 dynamic
> amp;xslPath: /shared/xsl/pages/page-to-hero.xsl
> amp;foo2: bar2
> amp;mode: simple
>
> ++++ ff3 static
> xslPath: /shared/xsl/pages/page-to-hero.xsl
> mode: simple
> foo2: bar2
>
> Thanks much for reading!
--~--~---------~--~----~------------~-------~--~----~
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