ouyang789987 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

cannot use dot in flashvars name #393

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The famous and everywhere used 'JW Player' uses flashvars with a dot in
it for passing flashvars to its plugins

2.
When embedding the player (or any othe flash file) specify flashvars such
as those bellow :

var flashvars = {
flow.coverheight: "20",
flow.position: "right"
};

3.
Output is broken and the flash object is not displayed 

What is the expected output? What do you see instead?
We should have the swf displayed on screen

What version of the product are you using? On what operating system?
swfobject 2.2

Please provide any additional information below.

Original issue reported on code.google.com by famille....@gmail.com on 23 Oct 2009 at 8:11

GoogleCodeExporter commented 9 years ago
The issue is rather javascript related.
I could finally circumvent it using the following syntax :

flashvars["flow.coverheight"] = "20";
flashvars["flow.position"] = "right";

Regards,

Original comment by famille....@gmail.com on 23 Oct 2009 at 8:36

GoogleCodeExporter commented 9 years ago
SWFObject passes variables just as any other embed method does. Flashvars are 
converted 
to strings when passed to Flash, so no complex objects are allowed. Use 
ExternalInterface or server calls for passing of complex objects.

Original comment by aran.rhee@gmail.com on 25 Oct 2009 at 10:35