Hi Aran

Thank you for your reply. The querystring vars are part of the video
location.

I've tried escaping the querystring using the javascript escape
function but I still get the same problem, that is the player controls
and layout have disappeared and the video is downloading.

I've noticed that as soon as I’ve added a ? to the video location the
request has a & followed by a number attached to it.

So by doing this:
so.addVariable("file","http://www.example.com/myMovie.mov?test";)

The request, according to firebug is:
http://www.example.com/myMovie.mov?test&468

Any ideas what may be causing this?

Gary


On Jan 15, 3:52 am, Aran Rhee <[email protected]> wrote:
> Gary.
>
> If the querysting  vars are required to be read by flash as individual
> values, then you need to call addVariable() for each var you want to pass.
>
> If the querysting vars are a part of the video location as a
> single variable, then you should javascript escape() the values before
> passing , as Flash will split any variables based on the ampersand char.
>
> Aran
>
> On Fri, Jan 15, 2010 at 4:05 AM, garyboyle <[email protected]> wrote:
> > Hi folks,
>
> > I'm creating a new swf file and seeting the file variable like so:
>
> > var so = new SWFObject('/mediaplayer.swf','mpl','640','480','9');
> > so.addVariable("file","http://www.example.com/myMovie.mov";);
>
> > This works fine. I get a player set up ad once I press play on the
> > player the movie starts to download.
>
> > But I get problems as soon as I append variables to the file url
> > variable eg.
> > so.addVariable("file","http://www.example.com/myMovie.mov?
> > myVar=test&otherVar=foo");
>
> > Now the player controls and layout have disappeared and replaced with
> > just a loader gif, and the file is downloading.
>
> > Any help would be great.
>
> > Regards,
>
> > Gary Boyle
>
> > NB There is other code involved but I'm just showing the lines
> > involved in my problem.
>
> > --
> > 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]<swfobject%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/swfobject?hl=en.
-- 
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